joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e0e
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov edx, 0xf8c9
xor eax, eax
jmp 0x402e2c
imul eax, edx
imul edx, edx, 0x5c6b7
movsx ecx, cl
add eax, ecx
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x402e1d
cmp dword [ebp + 8], 0
pop esi
je 0x402e40
xor edx, edx
div dword [ebp + 8]
mov eax, edx
pop ebp
ret

Function at 0x403250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
push dword [ebp - 4]
mov esi, 0x49b188
push 0x476c94
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push esi
push esi
push SysReAllocStringLen
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
mov eax, esi
je 0x4032aa
mov eax, 0x49b19c
pop esi
leave
ret

Function at 0x403b69
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x403bde
cmp word [ebx + 8], 2
jne 0x403bbe
cmp word [ebx + 0xa], 4
jne 0x403bbe
mov edi, dword [ebx + 0xc]
jmp 0x403bb8
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403b02
mov dword [esi], eax
test eax, eax
je 0x403bd9
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x403b9c
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.00439d9b
add esp, 0x10
xor eax, eax
jmp 0x403c04
push 8
pop eax
jmp 0x403c04
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x403c04
dec ecx
je 0x403bff
dec ecx
je 0x403bf8
dec ecx
jmp 0x403c04
mov eax, 0x2afb
jmp 0x403c04
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4041eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x49b990], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x403d68
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x404037
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00403d2c
jne 0x404345
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40433b
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.00438084
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.00439228
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4042a8
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4042a4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x4042fd
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.00438084
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.00439228
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40433b
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4042f9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x40433b
xor esi, esi
push dword [ebp + esi*8 - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x14], eax
test eax, eax
je 0x40431a
inc esi
cmp esi, 3
jl 0x4042ff
jmp 0x404323
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x40433b
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x497aa0], ecx
add eax, 8
cmp eax, 0x18
jl 0x404329
mov dword [0x49b990], 1
mov eax, dword [0x497aa0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404f46
Capabilities:
Hash data using sha1

Disassembly:
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 0x4051fe
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x1c]
mov byte [ecx + eax + 0x20], 0x80
inc dword [eax + 0x1c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x1c]
jle 0x405248
jmp 0x40521e
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x40
jl 0x405213
call fcn.00405046
jmp 0x405235
mov ecx, dword [eax + 0x1c]
mov byte [eax + ecx + 0x20], 0
inc dword [eax + 0x1c]
cmp dword [eax + 0x1c], 0x38
jl 0x40522a
jmp 0x40524d
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x38
jl 0x40523d
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x58], dl
mov edx, ecx
shr ecx, 8
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x18]
shr edx, 0x10
mov byte [eax + 0x5b], cl
mov ecx, dword [eax + 0x14]
mov byte [eax + 0x59], dl
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x5c], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 0x5e], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5d], dl
mov byte [eax + 0x5f], cl
jmp fcn.00405046

Function at 0x4053d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov byte [ebp - 0x14], 0
push esi
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4053f4
sub eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00405290
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x405418
add ecx, 4
dec edi
jne 0x405413
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040539d
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x40544c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x180
push esi
push edi
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x10], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x20]
call fcn.00404f46
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push eax
mov eax, dword [ebp + 8]
lea esi, [esp + 0x24]
call fcn.00404fda
lea eax, [esp + 0x88]
push eax
call edi
push eax
lea eax, [esp + 0x8c]
call fcn.00404fda
lea eax, [esp + 0xc]
push eax
call fcn.00404f7a
push dword [ebp + 0x10]
lea eax, [esp + 0x10]
push 0x14
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040539d
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4054d2
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x4081a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
push esi
xor ebx, ebx
mov byte [ebp - 1], 1
call fcn.0043b353
add esp, 8
test eax, eax
jne 0x4081ee
push 0x479d2c
push esi
call fcn.0043a181
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x4081f8
push esi
push str.ERROR:_Unable_to_open__s_for_reading_n
call fcn.0043bcaa
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x4081ee
mov dword [eax], ebx
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x18], bl
je 0x40824a
cmp byte [ebp + 0x14], bl
je 0x40820e
mov ecx, dword [ebp - 0x24]
inc ecx
push ecx
call fcn.004381ac
jmp 0x408218
mov edx, dword [ebp - 0x24]
inc edx
push edx
call fcn.004378e5
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ecx]
add esp, 4
test eax, eax
je 0x4081ee
mov edx, dword [ebp - 0x24]
mov byte [eax + edx], bl
mov eax, dword [ecx]
test eax, eax
jne 0x408280
push esi
push str.Unable_to_allocate_memory_to_read__s_to_mem
call fcn.0043bcaa
add esp, 8
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x14], bl
je 0x40825a
mov esi, dword [ebp - 0x24]
push esi
call fcn.004381ac
jmp 0x408266
mov edx, dword [ebp - 0x24]
push edx
call fcn.004378e5
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
mov dword [ecx], eax
mov eax, dword [edx]
add esp, 4
test eax, eax
jne 0x408283
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp - 0x24]
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40828f
mov dword [eax], esi
test esi, esi
je 0x4082f8
sub esi, ebx
cmp esi, 0x8000
jbe 0x4082a2
mov esi, 0x8000
mov eax, dword [ebp - 8]
push eax
push esi
push 1
push edi
call fcn.0043a3e2
add esp, 0x10
cmp eax, esi
jne 0x4082c3
mov esi, dword [ebp - 0x24]
add ebx, eax
add edi, eax
cmp ebx, esi
jb 0x408293
jmp 0x4082f8
mov ecx, dword [ebp + 8]
push ecx
push ebx
push esi
push str.Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.0043bcaa
mov esi, dword [ebp + 0xc]
mov edx, dword [esi]
push edx
call fcn.00437e81
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [esi], 0
test eax, eax
je 0x4082f4
mov dword [eax], 0
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
push eax
call fcn.0043a877
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409590
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
call fcn.0043b353
add esp, 8
test eax, eax
jne 0x409737
push esi
push 0x200
call fcn.004381ac
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4095d3
sub eax, edx
inc eax
push eax
push edi
mov ecx, ebx
call fcn.00407e50
mov dword [ebp - 0x10], eax
lea edi, [eax - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4095f0
mov dx, word [0x4785b0]
mov word [edi], dx
mov ecx, esi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409604
sub ecx, esi
mov edx, ecx
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409612
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x180]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
je 0x409724
mov dword [ebp - 4], 0x200
mov dword [ebp + 0x14], 0x80
cmp byte [ebp + 0x10], 0
je 0x4096cb
lea eax, [ebp - 0x154]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409661
sub eax, edx
mov edx, dword [ebp + 0xc]
inc eax
push eax
push edx
mov ecx, ebx
call fcn.00407e50
mov ebx, eax
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409680
mov ax, word [0x4785b0]
mov word [edi], ax
lea eax, [ebp - 0x154]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4096a0
sub eax, ecx
mov esi, ecx
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4096b0
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]
mov edi, dword [ebp - 0xc]
jmp 0x4096dd
push 0
lea ecx, [ebp - 0x154]
push ecx
mov ecx, ebx
call fcn.00407e50
mov ebx, eax
cmp dword [ebp + 0x14], 2
mov esi, dword [ebp + 8]
jae 0x409707
mov eax, dword [ebp - 4]
mov edx, dword [esi]
sub dword [ebp + 0x14], 0xffffff80
add eax, 0x200
push eax
push edx
mov dword [ebp - 4], eax
call fcn.004397d1
add esp, 8
test eax, eax
je 0x409741
mov dword [esi], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x180]
push ecx
push edi
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x409652
lea edx, [ebp - 0x10]
push edx
mov ecx, ebx
call fcn.00407f80
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
test eax, eax
je 0x409750
push eax
call fcn.00437e81
add esp, 4
mov dword [esi], 0
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415ab0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1a0]
push eax
call fcn.0042bb30
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x19c]
mov edx, eax
add esp, 4
or edx, ecx
je 0x415ae9
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esi + 0x198], eax
mov dword [esi + 0x19c], ecx
jmp 0x415af4
push str.Attempt_to_reduce_CMuppet_ref_count___0_IGNORED
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x1a0]
push eax
call fcn.0042bb50
mov ecx, dword [esi + 0x120]
push ecx
call fcn.0042bb30
cmp byte [esi + 0x8a], 0
mov edx, dword [esi + 0x120]
push edx
sete bl
call fcn.0042bb50
add esp, 0xc
pop esi
mov al, bl
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417786
xor al, al
pop ebp
ret
and al, 0x10
cmp al, 0x10
sete al
pop ebp
ret

Function at 0x417790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4177aa
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [eax + 0x20]
push 0
push eax
lea ecx, [ebp - 0x80]
push str.size:__llu__hash:__s
push ecx
call fcn.00438a00
lea eax, [ebp - 0x80]
add esp, 0x14
lea edx, [eax + 1]
jmp 0x4177d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4177d0
sub eax, edx
cmp eax, 0x80
jae 0x4177f7
mov edx, 0x80
sub edx, eax
push edx
lea ecx, [ebp + eax - 0x80]
push 0
push ecx
call fcn.0043cdc0
add esp, 0xc
push esi
push 0x80
lea eax, [ebp - 0x80]
push 1
push eax
call fcn.0043c240
add esp, 0x10
cmp eax, 0x80
jne 0x4177a1
push esi
call fcn.0043c502
add esp, 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x419a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x100
push esi
push eax
push 0x80
mov esi, ecx
lea ecx, [ebp - 0x80]
push 1
push ecx
call fcn.0043a3e2
add esp, 0x10
cmp eax, 0x80
je 0x419a43
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x80]
mov byte [ebp - 1], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419a50
sub eax, edx
cmp eax, 0x80
jae 0x419a6f
cmp byte [ebp + eax - 0x80], 0
jne 0x419a3a
inc eax
cmp eax, 0x80
jb 0x419a60
lea edx, [ebp - 0x100]
push edx
push str.size
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.004166b0
test al, al
je 0x419a3a
lea ecx, [ebp - 0x100]
push edi
push ecx
call fcn.00438240
add esp, 4
lea edx, [ebp - 0x100]
push edx
mov edi, eax
push str.hash
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.004166b0
test al, al
je 0x419ace
lea eax, [ebp - 0x100]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419ac0
sub eax, edx
cmp eax, 0x20
jb 0x419ad8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x24
call fcn.004378e5
add esp, 4
test eax, eax
je 0x419af4
mov dword [eax + 0x20], 0
mov byte [eax], 0
mov edx, eax
jmp 0x419af6
xor edx, edx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x100]
mov ecx, eax
mov dword [esi], edx
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x419b05
mov edx, dword [esi]
mov dword [edx + 0x20], edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41bfb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x110]
push esi
push eax
call fcn.0042bb30
mov eax, dword [ebx + 0x194]
add esp, 4
test eax, eax
je 0x41bfdf
push eax
call fcn.00437e81
add esp, 4
mov ecx, dword [ebx + 0x110]
push ecx
mov dword [ebx + 0x194], 0
call fcn.0042bb50
add esp, 4
push 0x104
lea edx, [ebp - 0x104]
push edx
push str.MUP_CACHEDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x41c01f
lea esi, [ebp - 0x104]
jmp 0x41c049
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41c049
push esi
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0042f450
add esp, 0xc
test al, al
je 0x41c165
lea esi, [ebp - 0x208]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c050
sub eax, edx
add eax, 0x11
push eax
call fcn.004381ac
add esp, 4
mov dword [ebx + 0x194], eax
mov ecx, esi
mov edx, eax
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x41c070
push edi
mov edi, dword [ebx + 0x194]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c086
sub eax, edx
je 0x41c0b2
cmp byte [edi + eax - 1], 0x5c
je 0x41c0b2
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c0a0
mov cx, word [0x4785b0]
mov word [edi], cx
mov eax, dword [ebx + 0x194]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41c0c0
mov edx, dword [str.cache]
mov dword [eax], edx
mov cx, word [0x47859c]
push 0x5c
mov word [eax + 4], cx
mov edx, dword [ebx + 0x194]
push 0
push edx
call fcn.0041a5e0
add esp, 0xc
test al, al
jne 0x41c114
mov eax, dword [ebx + 0x194]
push eax
call fcn.00437e81
add esp, 4
pop edi
pop esi
mov dword [ebx + 0x194], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x110]
push ecx
call fcn.0042bb30
mov ecx, dword [ebx + 0x194]
mov eax, ecx
add esp, 4
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41c130
sub eax, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x41c155
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41c141
mov dx, word [0x4785b0]
mov edi, ecx
mov word [edi], dx
mov eax, dword [ebx + 0x110]
push eax
call fcn.0042bb50
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41ca30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20
push eax
mov dword [ebp - 8], ecx
call fcn.00416ce0
mov esi, eax
push 0
mov dword [ebp - 4], esi
call fcn.00439295
and eax, 0xffff
push eax
call fcn.00438051
call fcn.00438063
mov ecx, eax
imul ecx, ecx, 0x3e8
mov eax, 0x80010003
imul ecx
add edx, ecx
sar edx, 0xe
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
push ebx
lea ecx, [ebp - 0x2c]
push str._04i
push ecx
call fcn.00438a00
add esp, 0x14
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41ca93
mov dx, word [0x4765cc]
lea eax, [ebp - 0x2c]
mov word [edi], dx
mov edi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cab0
sub eax, edi
mov edx, edi
lea edi, [esi - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41cac0
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]
cmp ebx, 0x2710
jge 0x41cbd0
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.0043b353
add esp, 8
test eax, eax
je 0x41cb37
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cb00
sub eax, edx
cmp eax, dword [ebp + 0xc]
jae 0x41cbc4
mov edi, dword [ebp + 8]
cmp byte [ebp + 0x10], cl
je 0x41cb95
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
test al, al
jne 0x41cb5e
inc ebx
push ebx
push edi
push str._s._04i
jmp 0x41cb42
mov ecx, dword [ebp + 8]
inc ebx
push ebx
push ecx
push str._s._4i
push esi
call fcn.00438a00
add esp, 0x10
cmp ebx, 0x2710
jl 0x41cae4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x5c]
push edx
push esi
call fcn.0043b353
add esp, 8
test eax, eax
jne 0x41cb95
mov eax, dword [ebp - 0x56]
test eax, 0x4000
je 0x41cb80
push 0x1ff
jmp 0x41cb8c
test eax, 0x8000
je 0x41cb95
push 0x1b6
push esi
call fcn.00450f51
add esp, 8
mov ebx, dword [ebp - 8]
push edi
mov ecx, ebx
call fcn.00416760
mov eax, esi
sub edi, esi
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x41cba4
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.00416ea0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00416ea0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41cbe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x194]
sub esp, 0x104
push ebx
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cbf7
sub eax, esi
test edx, edx
je 0x41cc94
test eax, eax
je 0x41cc94
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov cl, byte [edx]
mov byte [esi], cl
inc edx
inc esi
test cl, cl
jne 0x41cc15
cmp byte [eax + ebx - 1], 0x5c
je 0x41cc41
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41cc30
mov ax, word [0x4785b0]
mov word [edi], ax
lea eax, [ebx - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41cc44
mov ecx, dword [str.__temp]
mov dword [eax], ecx
mov dx, word [0x472344]
push 0x5c
mov word [eax + 4], dx
mov cl, byte [0x472346]
push 0
push ebx
mov byte [eax + 6], cl
call fcn.0041a5e0
add esp, 0xc
test al, al
je 0x41cdd6
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41cc80
mov dx, word [0x4785b0]
mov word [edi], dx
jmp 0x41ccb9
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41cdd6
cmp eax, 0x104
jae 0x41cdd6
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41ccc0
mov edi, dword [ebp + 8]
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41ccd3
sub eax, esi
lea ecx, [eax + edx + 1]
cmp ecx, 0x104
jae 0x41cdd6
push 0x4722c0
push edi
call fcn.00438bf0
add esp, 8
test eax, eax
je 0x41cd03
add eax, 3
jmp 0x41cd05
mov eax, edi
lea edx, [ebp - 0x104]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41cd10
mov ecx, ebx
lea eax, [ebp - 0x104]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41cd25
sub ecx, esi
cmp byte [ebp - 0x104], dl
je 0x41cd8f
mov bl, 0x5f
jmp 0x41cd40
mov edx, ecx
inc ecx
cmp edx, 0xfc
ja 0x41cd89
movsx edx, byte [eax]
add edx, 0xffffffde
cmp edx, 0x5a
ja case.0x41cd5d.35
movzx edx, byte [edx + 0x41cdf4]
jmp dword [edx*4 + 0x41cde4]
mov byte [eax], 0x5c
jmp case.0x41cd5d.35
mov dl, byte [eax + 1]
test dl, dl
je case.0x41cd5d.34
cmp dl, 0x2e
je 0x41cd7c
cmp dl, 0x5c
je case.0x41cd5d.34
jmp case.0x41cd5d.35
mov byte [eax + 1], bl
mov byte [eax], bl
inc eax
cmp byte [eax], 0
jne 0x41cd40
jmp 0x41cd8c
mov byte [eax], 0
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41cd97
sub eax, ecx
mov esi, ecx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41cda5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x5c
mov ecx, eax
and ecx, 3
push 1
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0041a5e0
add esp, 0xc
pop edi
test al, al
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8