joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4370e3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [ebx + 0x34]
push edi
mov ecx, esi
call fcn.0042ce32
test al, al
je 0x437109
cmp word [esi + 0x10], 0
jne 0x4371ff
cmp dword [ebx + 4], 0xffffffff
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x43711e
push 0
mov ecx, ebx
call fcn.0041f900
push 0
push 2
lea ecx, [ebx + 0x34]
call fcn.0040253f
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0041f8b9
cmp dword [ebx + 4], 0xffffffff
je 0x4371ff
mov esi, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.0041fe1e
cmp eax, 0xffffffff
jne 0x43717a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ecx, edi
call fcn.0041e646
push eax
push edi
push esi
push str.UDP_port_bind_failed__A:___d___s
call fcn.0045c3cd
add esp, 0x10
jmp 0x43718c
cmp word [esi + 0x10], 0
jne 0x43718c
mov ecx, ebx
call fcn.0041e56a
mov word [ebx + 0x44], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
mov edi, 0xffff
push edi
push dword [ebx + 4]
mov dword [ebp - 4], 0x200000
call esi
cmp eax, 0xffffffff
jne 0x4371cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.0045c406
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push edi
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x4371f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.0045c406
add esp, 0xc
mov ecx, ebx
call fcn.0041e4f1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4379fa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x484018]
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0x3c]
mov ebp, eax
sub ebp, dword [esi + 0xac]
xor ebx, ebx
cmp cl, bl
jbe 0x437c25
cmp cl, 3
jbe 0x437a2c
cmp cl, 5
jbe 0x437aa2
cmp cl, 6
jne 0x437c25
mov edx, eax
sub edx, dword [esi + 0x94]
js 0x437a47
cmp dword [esi + 0x38], ebx
jne 0x437a47
mov dword [esi + 0x38], 0x12c
mov eax, dword [0x484018]
mov dl, byte [esi + 0x20]
push edi
cmp dl, bl
jbe 0x437af6
mov edi, eax
sub edi, dword [esi + 0x90]
js 0x437af6
movzx edi, word [esi + 0x48]
movzx edx, dl
sub edi, edx
lea eax, [esi + 0xe0]
and edi, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [eax + edi*4]
mov eax, dword [esi + 0x8c]
add eax, eax
cmp eax, 0x7530
jb 0x437abe
cmp cl, 6
mov ecx, dword [esi + 0x64]
sete al
add al, 7
mov edx, 0x274c
mov byte [esi + 0x3c], al
call dword [esi + 0x78]
jmp 0x437c24
sub eax, dword [esi + 0x90]
js 0x437c25
cmp cl, 5
sete al
add al, 7
mov byte [esi + 0x3c], al
jmp 0x437c25
mov dword [esi + 0x8c], eax
mov ecx, dword [0x484018]
add ecx, eax
mov dword [esi + 0x90], ecx
mov ecx, esi
mov byte [esi + 0x19], bl
call fcn.0043747d
mov ax, word [esi + 0x48]
or byte [esi + 0x34], 0x20
mov word [esi + 0x4a], ax
mov eax, edi
mov ecx, esi
call fcn.00437736
mov eax, dword [0x484018]
cmp byte [esi + 0x3c], 3
jne 0x437b20
mov ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x28]
jae 0x437b20
cmp ecx, dword [esi + 0x2c]
jae 0x437b20
cmp ecx, dword [esi + 0x38]
jae 0x437b20
mov ecx, dword [esi + 0x64]
push 2
pop edx
mov byte [esi + 0x3c], 2
call dword [esi + 0x74]
mov eax, dword [0x484018]
cmp ebp, 0x2710
jle 0x437bdb
mov eax, dword [esi + 0xa8]
imul eax, eax, 0x3e8
xor edx, edx
div ebp
mov ecx, dword [esi + 0xb0]
mov edi, ecx
imul edi, edi, 0xfa0
xor edx, edx
mov ebx, 0x186a0
mov ebp, eax
mov eax, edi
div ebx
mov ebx, 0x5a1
cmp ebp, eax
jbe 0x437b85
cmp ecx, ebx
jae 0x437b85
mov eax, dword [esi + 0x28]
xor edx, edx
div ecx
cmp eax, 5
jbe 0x437b85
lea eax, [ecx + ecx]
mov dword [esi + 0xb0], eax
cmp eax, ebx
jbe 0x437bc3
mov dword [esi + 0xb0], ebx
jmp 0x437bc3
mov eax, edi
shr eax, 2
xor edx, edx
mov edi, 0x186a0
div edi
cmp ebp, eax
jb 0x437ba3
mov eax, dword [esi + 0x28]
xor edx, edx
div ecx
cmp eax, 3
jae 0x437bc3
cmp ecx, 0x96
jbe 0x437bc3
cmp ecx, ebx
jne 0x437bbb
mov dword [esi + 0xb0], 0x4b0
jmp 0x437bc3
shr ecx, 1
mov dword [esi + 0xb0], ecx
xor ebx, ebx
mov dword [esi + 0xa8], ebx
mov eax, dword [0x484018]
mov dword [esi + 0xac], eax
mov eax, dword [0x484018]
mov cl, byte [esi + 0x3c]
cmp cl, 2
je 0x437be8
cmp cl, 3
jne 0x437c24
cmp dword [esi + 0x1c], 0x960
ja 0x437bf8
mov ecx, eax
sub ecx, dword [esi + 0x54]
js 0x437c05
push ebx
mov eax, esi
call fcn.004375b1
mov eax, dword [0x484018]
sub eax, dword [esi + 0x5c]
cmp eax, 0x7148
jl 0x437c24
mov eax, 0xffff
add word [esi + 0x46], ax
push ebx
mov eax, esi
call fcn.004375b1
inc word [esi + 0x46]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43996f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x2c], edi
je 0x439a24
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
test eax, eax
je 0x439996
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x28]
mov dword [esi + 0x2c], edi
mov eax, dword [eax + edi*4]
mov dword [esi + 4], eax
test eax, eax
jne 0x4399e4
mov eax, dword [esi + 0x20]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x484240]
push 0
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.0043d4eb
mov ecx, dword [esi + 0x24]
push eax
mov eax, edi
shl eax, 4
mov edx, dword [eax + ecx]
mov ecx, dword [ebp + 8]
push ebx
call fcn.0043dd63
cmp byte [esi + 0x30], 0
mov dword [esi + 4], eax
pop ebx
je 0x4399e4
mov ecx, eax
call fcn.0043d103
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
push edi
push esi
or edx, 0xffffffff
call dword [eax + 0x14]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
push 0x250
sub edx, eax
push edx
mov edx, dword [esi + 0x18]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x439a24
mov edx, dword [ebp - 4]
call fcn.00439944
pop edi
pop esi
leave
ret 8
Function at 0x43d1f2
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov edx, esi
mov ecx, 0x43c9c5
mov dword [0x48423c], eax
call fcn.0043e9d3
push dword [0x48423c]
push 0
push eax
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 4], eax
pop esi
ret 4

Function at 0x43dbd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
movzx eax, dx
push 5
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x43dc4d
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x43dc29
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x43dc2d
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
jmp 0x43dc4c
push esi
push dword [ebp - 4]
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43dc4a
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43e99e
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [0x4842e8]
test esi, esi
jne 0x43e9c8
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ecx, 0x80
mov dword [eax], esi
mov esi, eax
add eax, 0x20
dec ecx
jne 0x43e9be
mov eax, dword [esi]
mov dword [0x4842e8], eax
mov eax, esi
pop esi
ret
Function at 0x43eb4f
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
call fcn.0041e600
lea ecx, [ebx + 0x15c]
call fcn.0040d251
test eax, eax
je 0x43eb7e
call fcn.0041e612
xor al, al
jmp 0x43ecff
test dword [ebp + 8], 0x200
push esi
push edi
jne 0x43ecae
test byte [ebx + 0x3e], 0x80
jne 0x43ecae
call fcn.0040d10f
mov ecx, eax
call fcn.0040d095
mov edi, eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43eba8
sub eax, edx
sar eax, 1
test dword [ebp + 8], 0x100
mov esi, eax
jne 0x43ebe8
push esi
push edi
push dword [ebp - 4]
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x43ebe8
mov ecx, dword [ebp - 4]
call fcn.00433ba7
sub eax, dword [ebp - 4]
sar eax, 1
inc esi
cmp eax, esi
jbe 0x43ecae
push edi
mov ecx, ebx
call fcn.00402f54
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
mov esi, eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x43ec93
mov ecx, esi
call fcn.004361fc
test al, al
je 0x43ec1f
push 0
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x43ec93
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
call fcn.0041e612
mov edi, dword [0x488cb8]
mov ecx, ebx
call fcn.0041e646
push eax
push ebx
push esi
push dword [ebp - 4]
push edi
call fcn.0045c3cd
add esp, 0x14
test byte [ebp + 8], 4
jne 0x43ec73
push esi
push dword [0x488cb4]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x35
call fcn.0043e3e2
add esp, 0xc
mov edi, eax
jmp 0x43ec76
push 2
pop edi
mov ecx, esi
call fcn.0043492c
cmp edi, 2
je 0x43ec8f
call fcn.0041e600
mov ebx, dword [ebp - 8]
jmp 0x43eb8d
xor al, al
jmp 0x43ecfd
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
mov ecx, ebx
call fcn.00402f07
mov ecx, esi
call fcn.0043492c
mov edx, dword [ebp + 8]
inc dword [0x484c2c]
shr edx, 1
and dl, 1
mov ecx, ebx
call fcn.0040e3e5
test byte [ebp + 8], 0x40
je 0x43ecd2
mov ecx, ebx
call fcn.0040bcda
jmp 0x43ece1
test byte [ebx + 0x3e], 0x80
jne 0x43ece1
push 0
mov ecx, ebx
call fcn.0040a170
test byte [ebp + 8], 0x10
je 0x43eceb
or dword [ebx + 0x4c], 0xffffffff
push 0
xor edx, edx
xor ecx, ecx
call fcn.0040e00c
call fcn.0041e612
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43f2b8
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x132c
call fcn.00460350
push ebx
mov edx, 0x46a240
lea ecx, [ebp - 0x2c]
xor ebx, ebx
call fcn.00435bf7
test al, al
jne 0x43f2e3
mov eax, str.cant_load_wininet.dll
jmp 0x43f471
push esi
push ebx
push ebx
push ebx
push ebx
push str.uTorrent_1850
call dword [ebp - 0x2c]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x43f301
mov esi, str.InternetOpen_failed
jmp 0x43f46e
push ebx
push ebx
push 3
mov eax, 0x462087
push eax
push eax
push 0x50
push str.update.utorrent.com
push dword [ebp - 8]
call dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x43f32a
mov esi, str.InternetConnect_failed
jmp 0x43f468
push edi
call sub.MSVCRT.dll__getpid
mov edi, eax
call fcn.004403fe
push dword [ebp + 0xc]
mov esi, eax
movzx eax, byte [ebp + 0x14]
push eax
push edi
push esi
push 0x4406
push str._crash.php_ver_dUh_sp_dUpr_dUs_dU
mov edi, 0x300
lea eax, [ebp - 0x32c]
push edi
push eax
call fcn.0042e794
add esp, 0x20
cmp dword [ebp + 0x10], ebx
je 0x43f382
push dword [ebp + 0x10]
sub edi, eax
push str.dl_s
lea eax, [ebp + eax - 0x32c]
push edi
push eax
call fcn.0042e794
add esp, 0x10
mov ecx, esi
call fcn.0043492c
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x32c]
push eax
push str.POST
push dword [ebp - 0xc]
call dword [ebp - 0x24]
mov edi, eax
cmp edi, ebx
jne 0x43f3b4
mov esi, str.HttpOpenRequest_failed
jmp 0x43f461
push 0x1000
lea eax, [ebp - 0x132c]
push 0xcc
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
cmp eax, ebx
jne 0x43f3e2
mov ecx, 0xfff
lea eax, [ebp - 0x132c]
push ecx
push eax
push 0xffffffffffffffff
push str.Content_type:_application_binary
push edi
call dword [ebp - 0x20]
test eax, eax
jne 0x43f3fa
mov esi, str.HttpSendRequest_failed
jmp 0x43f45d
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push edi
mov dword [ebp - 4], 4
call dword [ebp - 0x18]
test eax, eax
jne 0x43f41e
mov esi, str.HttpQueryInfo_failed
jmp 0x43f45d
cmp dword [ebp - 0x10], 0xc8
je 0x43f45b
push dword [ebp - 0x10]
mov esi, 0x484400
push str.Error__d_:
push 0x64
push esi
call fcn.0042e794
add esp, 0x10
push 0x64
pop ecx
sub ecx, eax
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
lea eax, [eax + 0x484400]
push eax
push 0x14
push edi
call dword [ebp - 0x18]
jmp 0x43f45d
mov esi, ebx
push edi
call dword [ebp - 0x1c]
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
pop edi
push dword [ebp - 8]
call dword [ebp - 0x1c]
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x43f4cf
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 8
mov esi, edx
mov edi, ecx
call fcn.00435115
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x43f4eb
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x43f4ed
xor eax, eax
lea edx, [esp + 8]
push edx
push ecx
push eax
push 0x43f476
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ecx
ret
Function at 0x43f50c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x5c]
push edi
push eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x5c], esi
cmp ebx, edi
je 0x43f572
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 1
push edi
lea eax, [ebp + 0xc]
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x43f55b
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x30], 0x100
or dword [ebp - 0x30], 1
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
xor eax, eax
push edi
cmp ebx, edi
setne al
push edi
push eax
push edi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x43f5ba
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x43f5b0
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x43f5b5
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
cmp ebx, edi
je 0x43f5c3
push dword [ebp - 0x1c]
call esi
xor eax, eax
cmp dword [ebp + 0xc], edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0xc

Function at 0x43f7c1
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0040d10f
cmp byte [eax + 0x11d], 0
push esi
je 0x43f7dd
push str._AUTOUPDATE___s___1
jmp 0x43f7e2
push str._AUTOUPDATE___s_
call fcn.0042e9f5
pop ecx
pop ecx
push 1
push 0
push eax
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
pop edi
mov al, cl
pop esi
ret

Function at 0x43f83a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0x20
lea edx, [ebp - 0x208]
xor ecx, ecx
call fcn.00448a0a
test eax, eax
je 0x43f8a3
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43f877
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x43f8a3
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.0042cf96
test al, al
je 0x43f8a3
mov al, 1
jmp 0x43f8f6
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x43f8f4
lea edx, [ebp - 0x208]
push esi
mov ecx, edx
call fcn.00448cc2
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43f8cc
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x43f8f4
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.0042cf96
test al, al
jne 0x43f89f
xor al, al
pop esi
leave
ret
Function at 0x43f8f9
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push 0x104
lea eax, [ebp - 0x618]
push eax
push str.COMSPEC
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x43fa69
push ebx
push edi
push 2
xor eax, eax
pop ebx
movzx ecx, word [eax + str.ping__n_2_127.0.0.1_r_n]
mov word [ebp + eax - 0x410], cx
add eax, ebx
test cx, cx
jne 0x43f92b
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x43f945
sub eax, edx
lea edi, [ebp - 0x410]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x43f959
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040d11d
lea edx, [ebp - 0x208]
mov esi, eax
sub edx, eax
movzx edi, word [esi]
mov word [edx + esi], di
add esi, ebx
test di, di
jne 0x43f981
mov ecx, eax
call fcn.0043492c
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x43f99e
mov esi, str..bat
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
pop edx
lea ecx, [ebp - 0x208]
movsw word es:[edi], word [esi]
call fcn.004355cc
mov esi, eax
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x43f9cb
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
call fcn.0042d726
mov edx, eax
mov ecx, esi
call fcn.00435636
mov ecx, esi
call fcn.004355fa
lea edi, [ebp - 0x618]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x43f9fd
mov esi, str.__C
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x43fa19
sub eax, edx
lea edi, [ebp - 0x618]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x43fa2d
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x618]
call fcn.0042d726
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x1f
pop ecx
cmp ecx, eax
sbb eax, eax
pop edi
neg eax
pop ebx
jmp 0x43fa6b
xor al, al
pop esi
leave
ret
Function at 0x43fad3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], ecx
call fcn.0040d11d
lea edx, [ebp - 0x210]
mov dword [ebp - 8], eax
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x43faf4
lea edi, [ebp - 0x210]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x43fb0a
mov edx, dword [ebp - 4]
mov esi, 0x46aa68
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x210]
movsw word es:[edi], word [esi]
call fcn.004361c3
test al, al
je 0x43fb8e
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.0043f7c1
test al, al
je 0x43fb8e
mov esi, dword [sym.imp.KERNEL32.DLL_OpenMutexA]
mov dword [ebp - 4], 0x32
mov ebx, 0x46aa54
mov edi, 0x1f0001
jmp 0x43fb80
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 4]
je 0x43fb8e
push ebx
push 0
push edi
call esi
test eax, eax
je 0x43fb73
mov al, 1
jmp 0x43fba5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [ebp - 8]
call fcn.0043492c
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fbf9
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov byte [ebp - 8], dl
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], 0
test dl, dl
je 0x43fc1f
push 0x46aa54
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x238]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov ebx, 0x1f4
push ebx
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x14], eax
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x43fd36
mov ecx, dword [ebp - 0xc]
call fcn.004361fc
test al, al
je 0x43fc7e
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
jne 0x43fd4c
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x43fcc8
cmp byte [ebp - 8], 0
je 0x43fcc8
call fcn.0044345e
test al, al
je 0x43fcc8
cmp dword [0x484944], 0
jne 0x43fcc8
push dword [ebp + 8]
push dword [ebp - 0xc]
push str._AUTOUPDATE___s___NORUN__d
call fcn.0042e9f5
add esp, 0xc
push 1
mov edx, eax
lea ecx, [ebp - 0x238]
call fcn.0044498e
test al, al
jne 0x43fd99
dec dword [ebp - 0x14]
jne 0x43fd33
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0x47bf28
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x43fd16
cmp dword [0x484944], 2
je 0x43fd23
push dword [0x48931c]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x35
call fcn.0043e3e2
pop ecx
pop ecx
cmp eax, 2
je 0x43fd8a
jmp 0x43fd2c
cmp dword [0x484944], 2
jne 0x43fda7
cmp dword [ebp - 0x10], 0
je 0x43fd8a
dec dword [ebp - 0x10]
mov dword [ebp - 0x14], 0xa
push ebx
call edi
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x43fc5c
cmp byte [ebp - 8], 0
je 0x43fd86
mov ecx, dword [ebp - 0xc]
call fcn.0043fbaa
test al, al
jne 0x43fd8a
cmp dword [0x484944], 2
je 0x43fd86
push dword [0x489318]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x10
call fcn.0043e3e2
pop ecx
pop ecx
mov byte [ebp - 1], 1
call fcn.0043fa6e
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 0xc]
call fcn.0043fbaa
test al, al
jne 0x43fd86
jmp 0x43fd5e
mov ecx, dword [ebp - 0x14]
push 0x104
lea edx, [ebp - 0x440]
call fcn.0044891e
lea eax, [ebp - 0x440]
push eax
push dword [0x489314]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x30
call fcn.0042e9f5
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0043e3e2
add esp, 0x10
jmp 0x43fd8a