joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adf80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x62bbe4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ae12a
sub esp, 0x54
lea edi, [esp + 0x60]
xor eax, eax
call fcn.0046b64b
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
xor ebx, ebx
jmp 0x4adfaf
inc ebx
cmp edx, ebx
jle 0x4ae0ce
movzx ebp, byte [ecx + ebx]
xchg ebp, eax
cmp al, 0x25
xchg ebp, eax
je 0x4ae072
xchg ebp, eax
cmp al, 0x2e
xchg ebp, eax
je 0x4ae023
xchg ebp, eax
cmp al, 0x3a
xchg ebp, eax
jne 0x4adfae
lea edi, [esp + 0x28]
call fcn.0046b64b
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sym.net_netip.parseIPv6
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
lea edi, [esp + 0x28]
lea esi, [esp + 8]
call fcn.0046bb2e
lea edi, [esp + 0x60]
lea esi, [esp + 0x28]
call fcn.0046bb2e
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x54
ret
lea edi, [esp + 0x28]
call fcn.0046b64b
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sym.net_netip.parseIPv4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
lea edi, [esp + 0x28]
lea esi, [esp + 8]
call fcn.0046bb2e
lea edi, [esp + 0x60]
lea esi, [esp + 0x28]
call fcn.0046bb2e
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x54
ret
lea edi, [esp + 0x3c]
call fcn.0046b64a
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
lea ecx, [0x5189d0]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0x14
lea edi, [esp + 0x60]
call fcn.0046b64b
lea ecx, [0x506000]
mov dword [esp], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x544310]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
add esp, 0x54
ret
lea edi, [esp + 0x3c]
call fcn.0046b64a
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
lea ecx, [0x517c59]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0x12
lea edi, [esp + 0x60]
call fcn.0046b64b
lea ecx, [0x506000]
mov dword [esp], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x544310]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
add esp, 0x54
ret
call sym.runtime.morestack_noctxt
jmp sym.net_netip.ParseAddr
Function at 0x4b7cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x62bbe4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b7e6c
sub esp, 0x5c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.0046b647
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4b7ce8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
jmp 0x4b7d11
lea eax, [0x4f6ac0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x200
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x34]
mov ebx, eax
xor eax, eax
call fcn.0046b647
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0x70]
shl ecx, 0xb
movzx edx, word [esp + 0x78]
movzx ebx, byte [esp + 0x75]
or edx, ecx
test bl, bl
je 0x4b7d54
or edx, 0x80
movzx eax, byte [esp + 0x74]
test al, al
je 0x4b7d63
or edx, 0x100
movzx eax, byte [esp + 0x73]
test al, al
je 0x4b7d72
or edx, 0x200
movzx eax, byte [esp + 0x72]
test al, al
je 0x4b7d81
or edx, 0x400
movzx eax, byte [esp + 0x6e]
test al, al
je 0x4b7d90
or edx, 0xffff8000
movzx eax, byte [esp + 0x76]
test al, al
je 0x4b7d9c
or edx, 0x20
movzx eax, byte [esp + 0x77]
test al, al
je 0x4b7da8
or edx, 0x10
movzx eax, word [esp + 0x6c]
mov word [esp + 0x42], ax
mov word [esp + 0x44], dx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [ecx + 0xc]
mov ebx, dword [esp + 0x34]
cmp eax, edx
jae 0x4b7e18
mov dword [esp + 0x30], ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xc
lea eax, [0x4f6ac0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x58], ebx
add ecx, ebx
mov dword [esp], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xc
call sym.runtime.memmove
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], 1
lea edi, [esp + 0x7c]
lea esi, [esp + 0x34]
call fcn.0046bb06
add esp, 0x5c
ret
call sym.runtime.morestack_noctxt
jmp sym.vendor_golang.org_x_net_dns_dnsmessage.NewBuilder
Function at 0x4cd220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x62bbe4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4cd391
sub esp, 0x48
mov eax, dword [esp + 0x78]
cmp eax, 4
jne 0x4cd2b7
mov ecx, dword [esp + 0x74]
cmp dword [ecx], 0x6c616964
je 0x4cd256
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4cd2c3
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
test al, al
jne 0x4cd281
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4cd2c3
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
jmp 0x4cd2c3
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 0x54]
mov dword [esp], ebp
mov esi, dword [esp + 0x58]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x5c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call sym.net.favoriteAddrFamily
mov eax, dword [esp + 0x20]
movzx ecx, byte [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
call sym.net.socket
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x48
ret
call sym.runtime.morestack_noctxt
jmp sym.net.internetSocket
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3012089
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6b246a2c
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401170
Capabilities:
Get file version info

Disassembly:
sub esp, 0x114
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov ebx, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [esp + 8], eax
test eax, eax
jne 0x4011de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x41c
push str.Line_no_d_source_s_GetAdsVerFromModule_GetFileVersionInfoSizeA_failed_error_d._r_n
call fcn.0040cfa0
add esp, 0x10
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x114
ret
inc eax
push esi
push eax
call fcn.00424e26
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401218
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x424
push str.Line_no_d_source_s_GetAdsVerFromModule_GetFileVersionInfoA_failed_error_d._r_n
jmp 0x401247
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x46c6a0
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40126f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x42c
push str.Line_no_d_source_s_GetAdsVerFromModule_VerQueryValueA_failed_error_d._r_n
call fcn.0040cfa0
push esi
call fcn.0044ffa8
add esp, 0x14
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x114
ret
push 0x104
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0044fe60
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, word [ecx + 8]
movzx ecx, word [ecx + 0x12]
push eax
push ecx
lea edx, [esp + 0x34]
push str._d._d._d._d
push edx
call fcn.0044ff2b
push esi
call fcn.0044ffa8
lea eax, [esp + 0x40]
mov edx, ebx
mov ecx, eax
add esp, 0x28
sub edx, ecx
jmp 0x4012c0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4012c0
mov ecx, dword [esp + 0x11c]
pop esi
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044ffb3
add esp, 0x114
ret

Function at 0x401c80
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x208
lea eax, [esp + 4]
push 0
push eax
call fcn.0044fe60
mov eax, dword [0x486e74]
add esp, 0xc
cmp dword [0x486e88], 8
jae 0x401cbb
mov eax, 0x486e74
push str.binADSafe3
push eax
lea ecx, [esp + 8]
push 0x46c8b4
push ecx
call fcn.00401040
add esp, 0x10
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401d20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x32
push str.Line_no_d_source_s_CreateUnzipTmpDir_CreateDirectory_failed_error_d._r_n
call fcn.0040cfa0
push 0x46c80c
call fcn.0040cfa0
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, 1
call fcn.0044ffb3
add esp, 0x20c
ret
Function at 0x402c50
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebp
push esi
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x402c6a
lea eax, [esp + 0x18]
lea edx, [esp + 8]
push edx
push 0x2001f
xor ebp, ebp
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402ce8
cmp dword [esp + 0x2c], esi
jb 0x402c96
mov eax, dword [esp + 0x18]
push eax
call fcn.0044fc16
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], cx
cmp dword [esp + 0x48], esi
jb 0x402cbc
mov edx, dword [esp + 0x34]
push edx
call fcn.0044fc16
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], ax
cmp dword [esp + 0x64], esi
jb 0x402ce2
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0044fc16
add esp, 4
pop esi
xor al, al
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x402cf6
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x402d04
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x60]
push ebx
lea edx, [edx + edx + 4]
push edx
push ecx
push 1
push ebp
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0xc]
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], esi
jb 0x402d41
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044fc16
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], ax
cmp dword [esp + 0x4c], esi
jb 0x402d67
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0044fc16
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], dx
cmp dword [esp + 0x68], esi
jb 0x402d8d
mov eax, dword [esp + 0x54]
push eax
call fcn.0044fc16
add esp, 4
mov al, bl
pop ebx
pop esi
pop ebp
pop ecx
ret
Function at 0x402da0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
xor ebx, ebx
mov edi, 8
mov dword [esp + 0xc], ebx
cmp dword [esp + 0x30], edi
jae 0x402dc1
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402e3b
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x402de6
lea eax, [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x402e3b
cmp dword [esp + 0x30], edi
jb 0x402e0a
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044fc16
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
cmp dword [esp + 0x4c], edi
jb 0x402ee7
mov edx, dword [esp + 0x38]
push edx
call fcn.0044fc16
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x402eae
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x402e51
lea eax, [esp + 0x38]
push 4
lea edx, [esp + 0x54]
push edx
push 4
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], edi
jb 0x402e81
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044fc16
add esp, 4
xor edx, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
cmp dword [esp + 0x4c], edi
jb 0x402ea7
mov eax, dword [esp + 0x38]
push eax
call fcn.0044fc16
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret
cmp dword [esp + 0x30], edi
jb 0x402ec1
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044fc16
add esp, 4
xor edx, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
cmp dword [esp + 0x4c], edi
jb 0x402ee7
mov eax, dword [esp + 0x38]
push eax
call fcn.0044fc16
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
Function at 0x402ef0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4670e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
jne 0x402f50
cmp dword [esp + 0x3c], 8
jb 0x402f3b
mov eax, dword [esp + 0x28]
push eax
call fcn.0044fc16
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x402f63
lea eax, [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402fab
cmp dword [esp + 0x3c], esi
jb 0x402f3b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0044fc16
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
inc esi
push esi
call fcn.00424e26
push esi
push 0
push eax
mov dword [ebx], eax
call fcn.0044fe60
mov ecx, dword [ebx]
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esi - 1]
push eax
push ecx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3c], 8
jb 0x403003
mov edx, dword [esp + 0x28]
push edx
call fcn.0044fc16
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x404860
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4671eb
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x49c]
mov ecx, dword [esp + 0x4a0]
xor ebp, ebp
push ebp
push eax
mov dword [esp + 0x1c], ecx
call fcn.00422c50
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x4048c6
xor eax, eax
jmp 0x404a31
lea edx, [esp + 0x50]
push edx
push 0xffffffffffffffff
push edi
call fcn.00420f90
mov eax, dword [esp + 0x5c]
add esp, 0xc
xor esi, esi
cmp eax, ebp
mov ebx, eax
jle 0x4048f6
lea eax, [esp + 0x50]
push eax
push esi
push edi
call fcn.00420f90
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x4048e2
xor ecx, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], cx
xor esi, esi
cmp ebx, ebp
mov dword [esp + 0x494], ebp
jle 0x404a0f
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x50]
push edx
push esi
push edi
call fcn.00420f90
lea eax, [esp + 0x60]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404936
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403680
push 0x2f
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004047c0
add esp, 0xc
cmp dword [esp + 0x30], 8
jb 0x40497c
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044fc16
add esp, 4
push 0x208
lea ecx, [esp + 0x284]
push 0
push ecx
call fcn.0044fe60
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp dword [esp + 0x4c], 8
jae 0x4049a2
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x14]
push eax
push edx
lea eax, [esp + 0x288]
push 0x46c8b4
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, 0x2f
cmp dx, word [esp + eax*2 + 0x52]
jne 0x4049f4
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404a06
push eax
lea ecx, [esp + 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x404a06
lea edx, [esp + 0x280]
push edx
push esi
push edi
call fcn.00422c70
add esp, 0xc
inc esi
cmp esi, ebx
jl 0x404920
push edi
call fcn.00422fb0
add esp, 4
cmp dword [esp + 0x4c], 8
jb 0x404a2c
mov eax, dword [esp + 0x38]
push eax
call fcn.0044fc16
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x484
ret
Function at 0x404e10
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4672b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push str.kernel32.dll
mov dword [esp + 0x20], 1
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404e64
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x404e64
push 0
call esi
mov ecx, dword [esp + 0x44]
mov eax, 8
cmp dword [esp + 0x58], eax
jae 0x404e77
lea ecx, [esp + 0x44]
cmp dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
jae 0x404e85
lea eax, [esp + 0x28]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 7
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push str.InsErr1
mov word [ecx + 4], ax
call fcn.00403680
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xf
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push 0x46ccb0
mov byte [esp + 0x60], 2
mov word [ecx + 4], dx
call fcn.00403680
push SysReAllocString
mov byte [esp + 0x5c], 1
call fcn.00402da0
add esp, 0x40
test esi, esi
je 0x404f0c
push 1
call esi
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x404f24
mov eax, dword [esp + 0x28]
push eax
call fcn.0044fc16
add esp, 4
xor ecx, ecx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], cx
cmp dword [esp + 0x58], esi
jb 0x404f4e
mov edx, dword [esp + 0x44]
push edx
call fcn.0044fc16
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x405650
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46739b
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x638], eax
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x640]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0044fe60
mov eax, dword [0x486e58]
add esp, 0xc
cmp dword [0x486e6c], 8
jae 0x4056ae
mov eax, 0x486e58
push str.ADSafe.exe
push eax
lea ecx, [esp + 0x2c]
push 0x46c8b4
push ecx
call fcn.00401040
lea edx, [esp + 0x34]
push edx
call fcn.00423030
add esp, 0x14
test eax, eax
je 0x4057ec
lea eax, [esp + 4]
push eax
push 0x1a
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x405718
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x35c
push str.Line_no_d_source_s_CreateLaunchShortcut_SHGetSpecialFolderLocation_failed_error_d._r_n
call fcn.0040cfa0
add esp, 0x10
xor eax, eax
jmp 0x40581e
push 0x104
lea ecx, [esp + 0x438]
push 0
push ecx
call fcn.0044fe60
mov eax, dword [esp + 0x10]
add esp, 0xc
lea edx, [esp + 0x434]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jge 0x40576b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x365
push str.Line_no_d_source_s_CreateLaunchShortcut_SHGetPathFromIDList_failed_error_d._r_n
call fcn.0040cfa0
add esp, 0x10
xor eax, eax
jmp 0x40581e
lea ecx, [esp + 8]
push 9
push ecx
call fcn.00424560
push 0x208
lea edx, [esp + 0x238]
push 0
push edx
mov dword [esp + 0x65c], 0
call fcn.0044fe60
mov eax, dword [esp + 0x20]
add esp, 0x14
cmp dword [esp + 0x20], 8
jae 0x4057a8
lea eax, [esp + 0xc]
push eax
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x238]
push str._s_s_s.lnk
push ecx
call fcn.00401040
push 0
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00404f70
add esp, 0x20
test eax, eax
jne 0x4057f0
lea ecx, [esp + 8]
call fcn.004021f0
xor eax, eax
jmp 0x40581e
lea ecx, [esp + 0x22c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00401120
mov edx, dword [esp + 0xc]
add esp, 8
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 8]
call fcn.004021f0
mov eax, 1
mov ecx, dword [esp + 0x640]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x648
ret