joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456d7a
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
mov dword [ebp - 0x48], eax
call fcn.0045b6c4
push esi
call fcn.0045b6c4
xor ebx, ebx
pop ecx
pop ecx
cmp dword [esi + 0x14], ebx
je 0x456dc0
cmp dword [esi + 0x18], 8
jb 0x456db6
mov eax, dword [esi + 4]
jmp 0x456db9
lea eax, [esi + 4]
push eax
call fcn.0046e602
pop ecx
lea ecx, [ebp - 0x60]
call fcn.00411eb6
push str.bootstrap.dat
lea ecx, [ebp - 0x20]
call fcn.00401900
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x60]
call fcn.00411dbf
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x20]
call fcn.00401a62
push str.dhtnodes.dat
lea ecx, [ebp - 0x20]
call fcn.00401900
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x60]
call fcn.00411dbf
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00401a62
push str.nodes.dat
lea ecx, [ebp - 0x20]
call fcn.00401900
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x60]
call fcn.00411dbf
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00401a62
push str.server.met
lea ecx, [ebp - 0x20]
call fcn.00401900
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x60]
call fcn.00411dbf
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00401a62
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x54]
lea ecx, [ebp - 0x44]
call fcn.0041656d
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
call fcn.0041656d
jmp 0x456ee2
lea ecx, [ebp - 0x44]
call fcn.004039ef
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x20]
push eax
call fcn.0042bf7b
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.004039ef
push eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0042bf7b
mov ecx, dword [ebp - 0x38]
add esp, 0xc
cmp dword [ebp - 0x24], 8
jae 0x456eb1
lea ecx, [ebp - 0x38]
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x456ebd
lea eax, [ebp - 0x1c]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
push edi
lea ecx, [ebp - 0x3c]
call fcn.00401a62
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00401a62
lea ecx, [ebp - 0x44]
call fcn.00403982
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x44]
call fcn.004039b1
test al, al
je 0x456e77
lea ecx, [ebp - 0x60]
call fcn.00412243
push dword [ebp - 0x60]
call fcn.00476220
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
leave
ret 8
Function at 0x45b07c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
push edi
lea ecx, [ebp - 0x3c]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [ebp - 0x24], 7
call fcn.00401ce9
lea eax, [ebp - 0x3c]
push eax
call fcn.004399ea
mov ecx, eax
call fcn.00437d16
push str.dl_uac_tool.dll
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041318d
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x45b0df
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x45b135
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetSingleProcessUseDir
push ebx
call edi
push str.GetProfileDir
push ebx
mov dword [esi], eax
call edi
push str.GetComponentsDir
push ebx
mov dword [esi + 4], eax
call edi
push str.GetSingleProcessUseDir
push ebx
mov dword [esi + 8], eax
call edi
push str.SetMultiProcessUseDir
push ebx
mov dword [esi + 0xc], eax
call edi
push str.GetMultiProcessUseDir
push ebx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a62
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401a62
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
leave
ret

Function at 0x45b373
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c886c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 8
xor ecx, ecx
pop ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
cmp dword [0x4c8880], ebx
jae 0x45b3a9
mov eax, 0x4c886c
push ecx
push ecx
push 0x2001f
push ecx
push ecx
push eax
push connect
lea ecx, [ebp - 0x28]
call fcn.0045b28b
test eax, eax
jne 0x45b471
push str.AppName
lea ecx, [ebp - 0x20]
call fcn.00401900
cmp dword [edi + 0x18], ebx
jb 0x45b3df
mov edi, dword [edi + 4]
jmp 0x45b3e2
add edi, 4
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], ebx
jae 0x45b3ed
lea eax, [ebp - 0x1c]
push 1
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.0045b2d9
push str.AppPath
lea ecx, [ebp - 0x20]
call fcn.00401a3e
cmp dword [esi + 0x18], ebx
jb 0x45b410
mov esi, dword [esi + 4]
jmp 0x45b413
add esi, 4
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], ebx
jae 0x45b41e
lea eax, [ebp - 0x1c]
push 1
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.0045b2d9
push 0x4ab7d4
lea ecx, [ebp - 0x20]
call fcn.00401a3e
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], ebx
jae 0x45b442
lea eax, [ebp - 0x1c]
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x28]
call fcn.0044f0ea
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a62
lea ecx, [ebp - 0x28]
call fcn.0044f0ea
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0047674a
leave
ret
Function at 0x45b48a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.004766d0
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x68], 0x80
call fcn.004766d0
add esp, 0x18
mov eax, 0x4a6ef4
push eax
push edi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00409d9a
add esp, 0xc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041318d
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00401a62
cmp esi, ebx
je 0x45b51d
push 0x4b2da4
lea ecx, [ebp - 0x20]
call fcn.00401987
push esi
lea ecx, [ebp - 0x20]
call fcn.00401987
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
call fcn.00403108
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45b563
mov byte [ebp - 0x21], bl
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a62
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
leave
ret
cmp byte [ebp + 0x10], bl
je 0x45b573
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
mov byte [ebp - 0x21], 1
jmp 0x45b546
Function at 0x45b947
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push esi
push edi
mov edi, dword [ebp + 0x1b4]
xor eax, eax
push 0x206
mov word [ebp - 0x60], ax
xor esi, esi
lea eax, [ebp - 0x5e]
push esi
push eax
call fcn.004766d0
add esp, 0xc
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
jne 0x45b99a
xor al, al
jmp 0x45ba23
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x45b9f0
lea ecx, [ebp - 0x64]
push ecx
push esi
push esi
push 0x4ab748
mov dword [ebp - 0x64], esi
call eax
cmp dword [ebp - 0x64], esi
je 0x45b993
push dword [ebp - 0x64]
call fcn.0047665d
pop ecx
push dword [ebp - 0x64]
cmp eax, 0x104
jbe 0x45b9da
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x45b993
lea eax, [ebp - 0x60]
push eax
call fcn.004766a5
pop ecx
pop ecx
push dword [ebp - 0x64]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x45b9ff
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x80]
call fcn.00401900
push 0xffffffffffffffff
push esi
push eax
mov ecx, edi
call fcn.004019ab
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.00401a62
mov al, 1
mov ecx, dword [ebp + 0x1a8]
pop edi
xor ecx, ebp
pop esi
call fcn.0047674a
add ebp, 0x1ac
leave
ret

Function at 0x45ba3a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push esi
push edi
mov edi, dword [ebp + 0x1b4]
xor eax, eax
push 0x206
mov word [ebp - 0x60], ax
xor esi, esi
lea eax, [ebp - 0x5e]
push esi
push eax
call fcn.004766d0
add esp, 0xc
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
jne 0x45ba8d
xor al, al
jmp 0x45bb16
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x45bae3
lea ecx, [ebp - 0x64]
push ecx
push esi
push esi
push 0x4ab758
mov dword [ebp - 0x64], esi
call eax
cmp dword [ebp - 0x64], esi
je 0x45ba86
push dword [ebp - 0x64]
call fcn.0047665d
pop ecx
push dword [ebp - 0x64]
cmp eax, 0x104
jbe 0x45bacd
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x45ba86
lea eax, [ebp - 0x60]
push eax
call fcn.004766a5
pop ecx
pop ecx
push dword [ebp - 0x64]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x45baf2
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x80]
call fcn.00401900
push 0xffffffffffffffff
push esi
push eax
mov ecx, edi
call fcn.004019ab
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.00401a62
mov al, 1
mov ecx, dword [ebp + 0x1a8]
pop edi
xor ecx, ebp
pop esi
call fcn.0047674a
add ebp, 0x1ac
leave
ret
Function at 0x45e250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a0fdb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3a10]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
xor edx, edx
test ecx, ecx
setl dl
mov esi, dword [eax + 0xc]
dec edx
and edx, ecx
mov ecx, dword [eax]
mov edi, edx
xor edx, edx
test ecx, ecx
setl dl
dec edx
and edx, ecx
mov ebp, edx
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0xc]
cmp esi, ecx
jle 0x45e2a6
mov esi, ecx
mov edx, dword [edx + 8]
mov eax, dword [eax + 8]
cmp eax, edx
jle 0x45e2b2
mov eax, edx
sub eax, ebp
mov ebx, eax
sub esi, edi
test ebx, ebx
jle 0x45e35e
test esi, esi
jle 0x45e35e
push 0x1c
call fcn.00476774
add esp, 4
mov dword [esp + 0x30], eax
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp eax, ecx
je 0x45e2f1
push esi
push ebx
push 4
mov ecx, eax
call fcn.0045cb50
mov dword [esp + 0x30], eax
jmp 0x45e2f5
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
push edi
push ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.0045ccc0
mov edi, eax
mov eax, dword [esp + 0x30]
mov ebp, dword [eax + 0x14]
test esi, esi
jle 0x45e360
mov dword [esp + 0x14], esi
mov edx, ebp
test ebx, ebx
jle 0x45e339
mov eax, dword [esp + 0x2c]
lea ecx, [edi + eax]
mov esi, ebx
mov al, byte [ecx]
mov byte [edx], al
inc edx
add ecx, 4
sub esi, 1
jne 0x45e328
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add edi, dword [ecx + 0x10]
add ebp, dword [eax + 0x10]
sub dword [esp + 0x14], 1
jne 0x45e319
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x45f360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push edi
mov edi, dword [esp + 0x64]
cmp dword [edi + 0x20], 7
jne 0x45f39f
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
push edi
push eax
call fcn.0045f0d0
add esp, 0x20
pop edi
add esp, 0x50
ret
cmp dword [edi + 4], 0
mov cl, byte [esp + 0x78]
mov byte [esp + 0x50], 0
mov byte [esp + 0x4c], cl
mov dword [esp + 0x48], 1
jne 0x45f3c1
xor eax, eax
pop edi
add esp, 0x50
ret
mov edx, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x78]
push esi
push edx
call fcn.0045be60
mov dword [esp + 0x68], eax
test eax, eax
jne 0x45f3df
pop esi
pop edi
add esp, 0x50
ret
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, dword [esi]
sub ecx, dword [esi + 4]
mov edi, dword [edi + 0xc]
push ebx
mov ebx, dword [esp + 0x74]
push ebp
mov ebp, dword [esp + 0x7c]
add eax, ebx
add ecx, ebp
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], edi
call fcn.00460020
push edi
call fcn.00460030
mov edi, eax
add esp, 8
test edi, edi
je 0x45f552
jmp 0x45f430
cmp dword [edi + 0x18], 0
je 0x45f53b
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0045ff60
add esp, 8
lea eax, [esp + 0x14]
push eax
call fcn.00466d00
test eax, eax
jne 0x45f53b
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00465f20
test eax, eax
je 0x45f53b
mov eax, ebp
neg eax
push eax
mov ecx, ebx
neg ecx
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00466d80
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
neg ecx
push ecx
neg edx
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00466d80
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.0045e1a0
mov esi, eax
add esp, 8
test esi, esi
je 0x45f519
push 0
push 0
push esi
call fcn.0045e3a0
mov eax, dword [0x4c88c8]
mov ecx, dword [eax]
mov edx, dword [esp + 0x94]
push edx
mov edx, dword [edi + 0x18]
lea eax, [esp + 0x54]
push eax
push edx
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push edx
push 0
push 0
push esi
call eax
push esi
call fcn.0045e380
add esp, 0x30
jmp 0x45f53b
mov edx, dword [edi + 0x18]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [0x4c88c0]
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
call fcn.0045f080
add esp, 0x14
mov eax, dword [esp + 0x10]
push eax
call fcn.00460030
mov edi, eax
add esp, 4
test edi, edi
jne 0x45f430
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0045be40
pop ebp
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 0x50
ret
Function at 0x46d4c5
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x118
sub eax, 0x80
push edi
je 0x46d501
sub eax, 0x40
je 0x46d4f6
sub eax, 0x40
je 0x46d4eb
or eax, 0xffffffff
jmp 0x46d5e1
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x46d50a
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x46d50a
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0046d241
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
mov edi, dword [edi]
add esi, ecx
dec edi
sub eax, 0x1c
test edi, edi
jle 0x46d5c4
push ebx
mov dword [ebp + 0x10], ecx
movzx edx, byte [eax + 3]
movzx edx, byte [edx + str.cw]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + str.cw]
mov edx, dword [edx*4 + 0x4adb30]
xor edx, dword [ebx*4 + 0x4ad730]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x4ad330]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x4acf30]
add eax, ecx
mov dword [esi], edx
add esi, ecx
dec dword [ebp + 0x10]
jne 0x46d564
dec edi
sub eax, 0x20
test edi, edi
jg 0x46d561
pop ebx
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add esi, ecx
add eax, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x46e12f
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x46e174
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x46e174
xor edx, edx
mov eax, esi
shl eax, 3
push 6
pop ecx
div ecx
mov ecx, esi
shl ecx, 3
mov edx, eax
imul edx, edx, 6
sub ecx, edx
dec ecx
dec ecx
je 0x46e167
dec ecx
dec ecx
jne 0x46e16a
inc eax
inc eax
jmp 0x46e16a
add eax, 3
mov ecx, dword [ebp + 0xc]
inc eax
cmp dword [ecx], eax
jae 0x46e17b
mov dword [ecx], eax
push 0xfffffffffffffff0
pop eax
pop edi
pop esi
leave
ret
push ebx
xor edx, edx
push 3
pop ecx
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x46e1ff
dec eax
push 3
pop esi
div esi
inc eax
mov dword [ebp + 0x10], eax
imul eax, eax, 3
mov dword [ebp - 4], eax
movzx esi, byte [edi]
inc edi
movzx eax, byte [edi]
mov ebx, esi
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
movzx edx, byte [edi]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 4
shl esi, 4
add ebx, esi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, edx
shr esi, 6
inc edi
inc ecx
mov byte [ecx], bl
lea eax, [esi + eax*4]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x46e1a1
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp edx, esi
jae 0x46e254
movzx eax, byte [edi]
inc edx
cmp edx, esi
jae 0x46e211
movzx edi, byte [edi + 1]
jmp 0x46e213
xor edi, edi
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
shl eax, 4
mov ebx, edi
shr ebx, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, esi
jae 0x46e24c
and edi, 0xf
mov al, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x46e24f
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
pop ebx
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
jmp 0x46e177

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x46e5f3
xor eax, eax
cmp ax, word [esi]
je 0x46e5f3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e5fe
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46e5ef
test al, 0x10
je 0x46e5ef
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
push 0x132b3a1
call fcn.0046ec1a
pop ecx
xor al, al
pop esi
ret
Function at 0x46ea9e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x46eb42
xor eax, eax
cmp ax, word [edi]
je 0x46eb42
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x46eb3e
inc eax
push esi
push eax
call fcn.004754de
mov esi, eax
pop ecx
cmp esi, ebx
je 0x46eb3d
push esi
push dword [ebp + 8]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46eb36
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4b30a0
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46eb36
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
mov bl, 1
push esi
call fcn.004763f5
pop ecx
pop esi
mov al, bl
jmp 0x46eb4f
push 0x132b3a1
call fcn.0046ec1a
pop ecx
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x474170
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x474db2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test eax, eax
je 0x474e8e
xor ecx, ecx
cmp cx, word [eax]
je 0x474e8e
push 0x4ab948
push eax
call fcn.0047ac38
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x474df9
inc eax
jmp 0x474e91
lea eax, [ebp - 0x4dc]
push esi
push eax
call fcn.00474170
push edi
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0047a9d6
add esp, 0x14
jmp 0x474e47
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.00474b7f
push edi
push esi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0047a9d6
add esp, 0x1c
test eax, eax
ja 0x474e20
lea eax, [ebp - 0x4dc]
push ebx
push eax
call fcn.00474c1d
push 0xd8
lea eax, [ebp - 0x4dc]
push 0
push eax
call fcn.004766d0
push edi
call fcn.0047a702
add esp, 0x18
pop esi
push edi
test eax, eax
je 0x474e84
call fcn.0047a393
pop ecx
push 2
jmp 0x474e90
call fcn.0047a393
pop ecx
xor eax, eax
jmp 0x474e91
push 3
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047674a
leave
ret