joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4093b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x62c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x63c]
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
je 0x4093f6
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00409ba0
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x28], 0xffffffff
jne 0x409410
lea eax, [esp + 0x2c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00409ba0
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
jne 0x409426
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x62c
ret 8
cmp dword [esp + 0x2c], 0xc8
je 0x409444
push eax
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x62c
ret 8
mov edx, dword [esp + 0x30]
push edx
call fcn.00419c1d
mov edi, eax
mov eax, dword [esp + 0x34]
add esp, 4
xor esi, esi
test eax, eax
jbe 0x409490
mov ecx, dword [ebx + 0x28]
sub eax, esi
push 0
push eax
lea eax, [esi + edi]
push eax
push ecx
call sub.WSOCK32.dll_recv
test eax, eax
je 0x40948c
mov edx, dword [ebx]
add esi, eax
mov eax, dword [esp + 0x30]
mov ecx, ebx
push eax
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x40945d
jmp 0x409490
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x4094ac
mov ecx, dword [ebx + 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x28], 0xffffffff
cmp esi, eax
je 0x4094c7
push edi
call fcn.00419c12
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x62c
ret 8
mov edx, dword [esp + 0x640]
mov eax, esi
mov dword [edx], edi
pop edi
pop esi
pop ebx
add esp, 0x62c
ret 8
Function at 0x40a5e0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x40a60f
mov al, byte [edx + ecx - 1]
cmp al, 0x2e
je 0x40a60c
cmp al, 0x78
je 0x40a60c
cmp al, 0x58
je 0x40a60c
cmp al, 0x30
jl 0x40a618
cmp al, 0x39
jg 0x40a618
dec ecx
jne 0x40a5f4
push edx
call sub.WSOCK32.dll_inet_addr
ret 4
test ecx, ecx
je 0x40a60f
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40a630
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
ret 4
or eax, 0xffffffff
ret 4

Function at 0x40a640
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 2], eax
push esi
mov dword [esp + 0xa], eax
push ecx
mov dword [esp + 0x12], eax
mov word [esp + 8], 0
mov word [esp + 0x16], ax
call fcn.0040a5e0
test eax, eax
mov dword [esp + 8], eax
jne 0x40a67a
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 8
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov word [esp + 4], 2
mov edx, dword [esp + 0x1c]
push edx
call sub.WSOCK32.dll_htons
push 0x10
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push eax
push esi
call sub.WSOCK32.dll_connect
test eax, eax
je 0x40a6cf
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.WSOCK32.dll_closesocket
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 8
mov eax, esi
pop esi
add esp, 0x10
ret 8

Function at 0x40a6e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
test esi, esi
jne 0x40a702
test ebx, ebx
je 0x40a702
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
push edi
push esi
push ebx
push ebp
call sub.WSOCK32.dll_send
test eax, eax
jle 0x40a72e
cmp eax, esi
jge 0x40a72e
mov esi, eax
add ebx, eax
neg esi
push edi
push esi
push ebx
push ebp
call sub.WSOCK32.dll_send
test eax, eax
jg 0x40a717
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x40a780
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
mov esi, dword [esp + 0x110]
push eax
push 0x4004667f
push esi
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [esp + 4]
test eax, eax
jne 0x40a7e5
push 0x422ea0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_select
test eax, eax
jne 0x40a7e3
push 0x2733
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
add esp, 0x108
ret 0x10
jl 0x40a803
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
push edx
push eax
push ecx
push esi
call sub.WSOCK32.dll_recv
pop esi
add esp, 0x108
ret 0x10
Function at 0x40a810
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
push esi
push edi
test ebp, ebp
jle 0x40a88d
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push 0
push 1
push esi
push edi
call fcn.0040a780
cmp eax, 1
jne 0x40a896
mov al, byte [esi]
cmp al, 0xd
je 0x40a852
cmp al, 0xa
je 0x40a891
inc ebx
inc esi
cmp ebx, ebp
jl 0x40a826
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 0xc
push 2
lea eax, [esp + 0x1c]
push 1
push eax
push edi
mov byte [esp + 0x28], 0
call fcn.0040a780
cmp eax, 1
jne 0x40a896
cmp byte [esp + 0x18], 0xa
jne 0x40a891
push 0
lea ecx, [esp + 0x1c]
push 1
push ecx
push edi
call sub.WSOCK32.dll_recv
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 0xc
mov esi, dword [esp + 0x18]
mov byte [esi], 0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x40a8a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
xor eax, eax
mov edx, dword [esp + 0x18]
mov dword [esp + 1], eax
push ebx
mov dword [esp + 9], eax
push esi
mov dword [esp + 0x11], eax
push edi
mov dword [esp + 0x19], eax
mov edi, edx
mov word [esp + 0x1d], ax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xc], 0
push ecx
lea ecx, [esp + 0x10]
push edx
push ecx
mov byte [esp + 0x2b], al
call fcn.0040af10
add esp, 0xc
lea ecx, [esp + 0xc]
mov edi, 5
xor eax, eax
lea esi, [ecx + 3]
mov dl, byte [esi]
mov bl, byte [ecx + eax]
xor bl, dl
mov byte [ecx + eax], bl
mov dl, bl
mov bl, byte [esi]
xor bl, dl
mov byte [esi], bl
mov dl, bl
mov bl, byte [ecx + eax]
xor bl, dl
mov byte [ecx + eax], bl
inc eax
dec esi
cmp eax, 2
jl 0x40a8f1
add ecx, 4
dec edi
jne 0x40a8ec
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.0040a940
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40a940
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebx
xor bl, bl
push esi
push edi
mov byte [esp + 0x10c], bl
mov eax, dword [esp + 0x10c]
mov cl, byte [esp + 0x10c]
and eax, 0xff
mov byte [esp + eax + 0xc], cl
mov al, byte [esp + 0x10c]
inc al
mov byte [esp + 0x10c], al
jne 0x40a952
mov esi, dword [esp + 0x11c]
mov edi, dword [esp + 0x118]
mov byte [esp + 0x10d], bl
mov eax, dword [esp + 0x10c]
xor edx, edx
and eax, 0xff
lea ecx, [esp + eax + 0xc]
div esi
mov al, byte [ecx]
mov dl, byte [edx + edi]
add dl, al
mov al, byte [esp + 0x10d]
add al, dl
mov byte [esp + 0x10d], al
mov edx, dword [esp + 0x10d]
mov al, byte [ecx]
and edx, 0xff
mov dl, byte [esp + edx + 0xc]
mov byte [ecx], dl
mov ecx, dword [esp + 0x10d]
and ecx, 0xff
mov byte [esp + ecx + 0xc], al
mov al, byte [esp + 0x10c]
inc al
mov byte [esp + 0x10c], al
jne 0x40a990
mov eax, dword [esp + 0x124]
mov byte [esp + 0x10d], bl
mov edx, eax
dec eax
test edx, edx
je 0x40aab7
mov ecx, dword [esp + 0x120]
lea esi, [eax + 1]
mov bl, byte [esp + 0x10c]
inc bl
mov byte [esp + 0x10c], bl
mov eax, dword [esp + 0x10c]
mov bl, byte [esp + 0x10d]
and eax, 0xff
mov dl, byte [esp + eax + 0xc]
lea eax, [esp + eax + 0xc]
add bl, dl
mov byte [esp + 0x10d], bl
mov edi, dword [esp + 0x10d]
mov dl, byte [eax]
and edi, 0xff
mov bl, byte [esp + edi + 0xc]
mov byte [eax], bl
mov eax, dword [esp + 0x10d]
and eax, 0xff
xor ebx, ebx
mov byte [esp + eax + 0xc], dl
mov edx, dword [esp + 0x10c]
and edx, 0xff
xor eax, eax
mov al, byte [esp + edx + 0xc]
mov edx, dword [esp + 0x10d]
and edx, 0xff
mov bl, byte [esp + edx + 0xc]
add eax, ebx
and eax, 0x800000ff
jns 0x40aaa5
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [esp + eax + 0xc]
mov bl, byte [ecx]
xor bl, al
mov byte [ecx], bl
inc ecx
dec esi
jne 0x40aa16
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x40aad0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
ret
Function at 0x40c190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c1a3
xor eax, eax
ret
and eax, 0x10
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c1c3
xor eax, eax
ret
not eax
shr eax, 4
and eax, 1
ret

Function at 0x40c390
Capabilities:
Copy file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x425bc1
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 0x4231a8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4231a8
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebx + 0x425bc0]
not ecx
dec ecx
cmp al, 0x5c
jne 0x40c3f2
dec ebx
cmp byte [0x4231a8], 0x5c
jne 0x40c404
mov dword [esp + 0x10], 0x4231a9
dec ecx
lea ecx, [ecx + ebx + 2]
push ecx
call fcn.00419c1d
mov ebp, eax
mov edi, 0x425bc1
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + ebp + 1]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
mov byte [ebx + ebp], 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
call fcn.00419c12
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x40c820
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x10], str.casinogame.exe
rep stosd dword es:[edi], eax
mov edi, 0x425bc1
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.casinogame.exe
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp + 0x425bc0]
mov dword [esp + 0x24], 0x44
not ecx
dec ecx
cmp al, 0x5c
jne 0x40c86b
dec ebp
cmp byte [str.casinogame.exe], 0x5c
jne 0x40c87d
mov dword [esp + 0x10], 0x423249
dec ecx
lea eax, [ecx + ebp + 2]
push eax
call fcn.00419c1d
mov ebx, eax
mov edi, 0x425bc1
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + ebp + 1]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
mov byte [ebx + ebp], 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x425ed5]
test al, al
je 0x40c900
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 0x425bc1
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
call fcn.00419c12
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x40cef0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push esi
call fcn.00419c30
add esp, 8
test eax, eax
je 0x40cf21
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
mov byte [eax], 0
call edi
push 0x5c
push esi
call fcn.00419c30
add esp, 8
test eax, eax
jne 0x40cf0b
pop edi
pop esi
ret
Function at 0x40cf30
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0
push str.username
call fcn.0040f130
push 1
push 0x423140
mov dword [esp + 0x28], eax
call fcn.0040f130
push 0
push str.level
mov dword [esp + 0x2c], eax
call fcn.0040f2f0
push 0
push str.recall
mov dword [esp + 0x3c], eax
call fcn.0040f2f0
mov dword [esp + 0x40], eax
mov edi, 0x4254c8
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
mov dword [esp + 0x10], 0x4253c9
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4253c9
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebx + 0x4254c7]
not ecx
dec ecx
cmp al, 0x5c
jne 0x40cfab
dec ebx
cmp byte [0x4253c9], 0x5c
jne 0x40cfbd
mov dword [esp + 0x10], 0x4253ca
dec ecx
lea eax, [ecx + ebx + 2]
push eax
call fcn.00419c1d
mov ebp, eax
mov edi, 0x4254c8
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
push SysReAllocStringLen
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + ebp + 1]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
mov byte [ebx + ebp], 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push ebp
call fcn.00419c12
mov ecx, 0x4255c7
add esp, 4
test ecx, ecx
je 0x40d0f9
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40d0f9
mov edi, 0x4255c7
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4253c9
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebx + 0x4255c6]
mov dword [esp + 0x10], 0x4253c9
not ecx
dec ecx
cmp al, 0x5c
jne 0x40d078
dec ebx
cmp byte [0x4253c9], 0x5c
jne 0x40d08a
mov dword [esp + 0x10], 0x4253ca
dec ecx
lea edx, [ecx + ebx + 2]
push edx
call fcn.00419c1d
mov ebp, eax
mov edi, 0x4255c7
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [ebx + ebp + 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, ebp
push SysReAllocStringLen
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
mov byte [ebx + ebp], 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push ebp
call fcn.00419c12
add esp, 4
mov ecx, dword [esp + 0x14]
push 1
push ecx
push 0x423140
call fcn.0040f2b0
mov edx, dword [esp + 0x24]
push 0
push edx
push str.username
call fcn.0040f2b0
mov eax, dword [esp + 0x34]
push eax
push str.level
call fcn.0040f340
mov eax, dword [esp + 0x40]
add esp, 0x20
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x40d147
push eax
push str.recall
call fcn.0040f340
add esp, 8
add esp, 0x14
ret
Function at 0x40d8f0
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
sub esp, 0x560
push ebx
push esi
push edi
lea eax, [esp + 0x164]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x268]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x60]
lea eax, [esp + 0x268]
push edx
push 0
push 0x4253c9
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x60]
push 0
lea edx, [esp + 0x168]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x4000000
push 3
push 0
push 1
lea eax, [esp + 0x74]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x164]
mov esi, eax
push ecx
lea edx, [esp + 0x64]
push esi
push edx
lea eax, [esp + 0x378]
push str._s__cleanup__d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0x14
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
push eax
lea eax, [esp + 0x38c]
mov dword [esp + 0x3c], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x560
ret

Function at 0x40da00
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push 0x424cd0
call fcn.0040e280
mov esi, dword [esp + 0xc]
add esp, 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5c
push esi
call fcn.00419c30
add esp, 8
test eax, eax
je 0x40da3f
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x40db00
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 4]
xor eax, eax
push ecx
push esi
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40db61
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, esi
sub eax, 0x25
je 0x40db8c
dec eax
je 0x40db72
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
push str.C:Program_Files
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop esi
add esp, 8
ret
mov esi, dword [esp + 0x14]
push edi
push 0x424660
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [eax + esi - 1]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x40dbc7
push 0x423318
push esi
call edi
push str.System32
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x40dbe0
Capabilities:
Create directory
Get file attributes

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi], 0
je 0x40dc0e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
mov esi, edi
cmp byte [esi], 0x5c
jne 0x40dc04
push 0
push edi
mov byte [esi], 0
call ebx
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40dbf4
pop esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
pop edi
neg eax
ret
Function at 0x40dc20
Capabilities:
Get file version info

Disassembly:
sub esp, 0x514
lea eax, [esp + 0x10]
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40dc5b
mov eax, 0x425ee0
pop esi
add esp, 0x514
ret
push ebx
push edi
push esi
call fcn.00419c1d
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ebx
push esi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push str.VarFileInfoTranslation
push ebx
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x524]
push ecx
xor ecx, ecx
mov edx, dword [eax]
mov cx, word [eax]
shr edx, 0x10
push edx
push ecx
lea edx, [esp + 0x12c]
push str.StringFileInfo_04x_04x_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x120]
push eax
push ecx
push edx
push ebx
call sub.VERSION.dll_VerQueryValueA
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x425ee0
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.00419c12
add esp, 4
mov eax, 0x425ee0
pop edi
pop ebx
pop esi
add esp, 0x514
ret
Function at 0x40e890
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x21c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push ecx
call fcn.0040db00
add esp, 8
test eax, eax
je 0x40e95e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push 0x423318
push edx
call esi
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x40e925
lea eax, [esp + 8]
push edi
push eax
call esi
lea ecx, [esp + 8]
push 0x423318
push ecx
call esi
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x218]
lea edx, [esp + 8]
push ecx
push edx
call esi
lea eax, [esp + 8]
push str..lnk
push eax
call esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
pop esi
je 0x40e95e
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
add esp, 0x208
ret