joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc727
Capabilities:
Reference sql statements

Disassembly:
push 0x58
mov eax, 0x51ee59
call fcn.004db2a7
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push str.prereq
mov dword [ebp - 0x4c], eax
xor ebx, ebx
call fcn.0040437e
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00451fcb
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405662
push str.SELECT__Data__FROM__Binary__WHERE__Name___Prereq.dll
lea ecx, [ebp - 0x44]
call fcn.0040437e
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.004ad116
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405662
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
push 0x5c
cmovae esi, dword [ebp - 0x2c]
push esi
call fcn.004de63a
pop ecx
pop ecx
test eax, eax
jne 0x4bc7b6
mov eax, ebx
jmp 0x4bc7bf
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
call fcn.004c0072
pop ecx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x48], 0
je 0x4bc803
push str.InstallPrereq
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bc803
push edi
call eax
mov ecx, dword [ebp - 0x4c]
mov bl, 1
mov dword [ecx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.004bfd45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405662
mov al, bl
call fcn.004db251
ret 4
Function at 0x4bf1c8
Capabilities:
Get common file path

Disassembly:
push 0x230
mov eax, 0x51f914
call fcn.004db2a7
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 8]
push 0x104
push eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add eax, eax
cmp eax, 0x208
jae 0x4bf27d
sub esp, 0x18
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
mov ecx, esp
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], esp
push eax
call fcn.0040437e
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.0046a490
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x230]
push str.msiexec.exe
mov dword [ebp - 0x234], edi
call fcn.0040437e
mov dword [ebp - 4], 2
lea eax, [ebp - 0x230]
push eax
mov ecx, esi
call fcn.0042f846
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x230]
call fcn.00405662
mov eax, esi
call fcn.004db251
ret 4
call fcn.004daeef
int3

Function at 0x4c092c
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x78
mov eax, 0x51ff15
call fcn.004db2a7
mov edi, dword [ebp + 8]
sub esp, 0x18
mov ebx, dword [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x84], esp
push edi
call fcn.0040437e
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0046a490
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046ad70
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4c097e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405662
mov ecx, dword [ebp + 0xc]
cmp esi, 3
jne 0x4c09a3
test ecx, 0x20000
jne 0x4c09ec
cmp esi, 2
jne 0x4c09b0
test ecx, 0x10000
jne 0x4c09ec
cmp esi, 4
jne 0x4c09bd
test ecx, 0x40000
jne 0x4c09ec
cmp esi, 5
jne 0x4c09ca
test ecx, 0x80000
jne 0x4c09ec
cmp esi, 6
jne 0x4c09d7
test ecx, 0x100000
jne 0x4c09ec
cmp esi, 2
jne 0x4c0a7b
test ecx, 0x200000
je 0x4c0a7b
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046ad70
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4c0a12
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405662
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
push edi
call fcn.0040437e
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004b0bf0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.004c1b0e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00405662
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405662
call fcn.004db251
ret 0x18
Function at 0x4c5ff7
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x64
lea ebp, [esp - 4]
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x44
mov eax, 0x521186
call fcn.004db273
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x1c]
push eax
call fcn.004bf1c8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0x4c]
push 0x535f94
call fcn.0040437e
mov byte [ebp - 4], 1
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0046d3b0
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4c6051
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x4c]
call fcn.0041212b
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x34]
call fcn.00405662
mov edi, 0x546ce4
push edi
call fcn.004e07a4
pop ecx
push eax
push edi
lea ecx, [ebp + 0x4c]
call fcn.0041212b
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp + 0x10]
call fcn.004c6198
push esi
lea ecx, [ebp + 0x10]
call fcn.00404171
push ecx
lea ecx, [ebp + 0x10]
call fcn.004c628a
push ecx
lea ecx, [ebp + 0x10]
call fcn.004c637c
lea edx, [ebp + 0x10]
lea ecx, [ebp + 0x34]
call fcn.0047ec30
mov byte [ebp - 4], 4
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4c60c9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x4c]
call fcn.0041212b
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x34]
call fcn.00405662
push 0x40
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x44
push ebx
push eax
call fcn.004de4e0
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
lea ecx, [ebp + 0x1c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x34]
push eax
call fcn.0046d3b0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x4c]
cmp dword [ebp + 0x60], 8
cmovae ecx, dword [ebp + 0x4c]
cmp dword [eax + 0x14], 8
jb 0x4c6123
mov eax, dword [eax]
lea edx, [ebp]
push edx
lea edx, [ebp - 0x50]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x34]
call fcn.00405662
test esi, esi
je 0x4c6156
push 0xffffffffffffffff
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004043cb
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x4c]
call fcn.00405662
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.00405662
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.004da696
lea esp, [ebp + 0x68]
pop ebp
ret 4
Function at 0x4cf6be
Capabilities:
Parse credit card information

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor dl, dl
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x4cf81b
push 0x29
mov eax, ecx
pop ebp
mov ebx, 0x10000000
cmp eax, 0x7c
je 0x4cf81b
cmp eax, ebp
jne 0x4cf701
cmp dword [esi + 0x10], 0
mov eax, ebp
jne 0x4cf81b
cmp eax, ebp
jne 0x4cf701
test dword [esi + 0x50], ebx
je 0x4cf829
cmp eax, 0x2e
jne 0x4cf71c
push 5
lea ecx, [esi + 0x24]
call fcn.004cf924
mov ecx, esi
call fcn.004cf693
jmp 0x4cf804
cmp eax, 0x5c
jne 0x4cf771
mov ecx, esi
call fcn.004cf693
test byte [esi + 0x50], 0x80
je 0x4cf765
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x4cf74d
push 4
lea ecx, [esi + 0x24]
call fcn.004cf924
mov ecx, esi
call fcn.004cf693
jmp 0x4cf80b
cmp eax, 0x42
jne 0x4cf765
push 4
lea ecx, [esi + 0x24]
call fcn.004cf924
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4cf741
mov ecx, esi
call fcn.004d0677
jmp 0x4cf804
cmp eax, 0x5b
jne 0x4cf791
mov ecx, esi
call fcn.004cf693
mov ecx, esi
call fcn.004d062b
cmp dword [esi + 0x4c], 0x5d
je 0x4cf710
push 4
jmp 0x4cf82b
cmp eax, 0x28
jne 0x4cf7ad
mov ecx, esi
call fcn.004cf693
mov ecx, esi
call fcn.004d0723
mov bl, al
cmp dword [esi + 0x4c], ebp
jne 0x4cf829
jmp 0x4cf7f9
cmp eax, 0x5e
jne 0x4cf7b6
push 2
jmp 0x4cf739
cmp eax, 0x24
jne 0x4cf7c2
push 3
jmp 0x4cf739
cmp eax, 0x2a
je 0x4cf825
cmp eax, 0x2b
je 0x4cf825
cmp eax, 0x3f
je 0x4cf825
cmp eax, 0x7b
je 0x4cf825
cmp ecx, 0x7d
jne 0x4cf7e0
test dword [esi + 0x50], ebx
je 0x4cf821
cmp ecx, 0x5d
jne 0x4cf7ea
test dword [esi + 0x50], ebx
je 0x4cf78a
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004d08db
mov bl, 1
mov ecx, esi
call fcn.004cf693
test bl, bl
je 0x4cf80b
mov ecx, esi
call fcn.004d0812
mov ecx, dword [esi + 0x4c]
mov dl, 1
mov eax, ecx
cmp ecx, 0xffffffff
jne 0x4cf6d6
pop esi
pop ebp
mov al, dl
pop ebx
ret
push 6
jmp 0x4cf82b
push 0xa
jmp 0x4cf82b
push 5
call fcn.004ce721
int3
Function at 0x4d3584
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x52488f
call fcn.004db2a7
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x250], eax
add eax, eax
cmp eax, 0x208
jae 0x4d3736
sub esp, 0x18
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
mov ecx, esp
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x260], esp
push eax
call fcn.0040437e
xor esi, esi
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.0046a490
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x234]
push str.msi.dll
call fcn.0040437e
mov byte [ebp - 4], 2
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0042f846
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00405662
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x258]
sub eax, dword [ebp - 0x25c]
sar eax, 1
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x234]
push eax
call fcn.0046d3b0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4d3671
mov eax, dword [eax]
mov edi, dword [sym.imp.msi.dll_MsiMessageBoxW]
lea ecx, [ebp - 0x250]
push esi
push esi
push ecx
push esi
push eax
call edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.00405662
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x25c]
inc eax
push ecx
push eax
call fcn.0046e3d0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0046d3b0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4d36c5
mov eax, dword [eax]
push esi
push esi
lea ecx, [ebp - 0x250]
push ecx
push dword [ebp - 0x25c]
push eax
call edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.00405662
mov edi, dword [ebp - 0x25c]
mov edx, esi
cmp edx, dword [ebp - 0x250]
jae 0x4d370d
movzx eax, word [edi + edx*2]
cmp eax, 0x2e
je 0x4d3707
imul esi, esi, 0xa
add esi, 0xffffffd0
add esi, eax
inc edx
cmp edx, 3
jb 0x4d36ee
imul esi, esi, 0xa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.0046e070
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.00405662
mov eax, esi
call fcn.004db251
ret
call fcn.004daeef
int3
Function at 0x4d4882
Capabilities:
Delete directory

Disassembly:
push 0xc
mov eax, 0x524d5e
call fcn.004db273
mov esi, edx
mov ebx, ecx
call fcn.0040d266
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d07d
mov dword [ebp - 4], 1
mov eax, dword [esi]
push 0x5c
pop edi
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4d4925
dec eax
mov ecx, esi
push eax
call fcn.00474210
cmp ax, di
jne 0x4d4925
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406c2e
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4d4914
cmp dword [edi + 0xc], 0
jl 0x4d4908
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4d4908
call fcn.00406f9b
mov ecx, edi
mov esi, eax
call fcn.0040d570
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4d4914
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040d7d9
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040d570
jmp 0x4d4962
mov edx, dword [esi]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4d4962
cmp dword [edi + 0xc], 0
jl 0x4d4956
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4d4956
call fcn.00406f9b
mov ecx, edi
mov esi, eax
call fcn.0040d570
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4d4962
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040d7d9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
mov eax, dword [eax - 0xc]
cmp eax, dword [ecx - 0xc]
jge 0x4d49c1
push 0x5c
push ecx
call fcn.004de987
pop ecx
pop ecx
test eax, eax
jne 0x4d4982
or eax, 0xffffffff
jmp 0x4d4986
sub eax, dword [ebx]
sar eax, 1
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00406c2e
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4d49b2
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004d4882
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040d570
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040d570
call fcn.004db23c
ret
Function at 0x4d49d6
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x524da1
call fcn.004db273
mov ebx, edx
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4d4aa6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040d266
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d07d
mov dword [ebp - 4], 1
push 0x5c
push dword [esi]
call fcn.004de987
pop ecx
pop ecx
test eax, eax
je 0x4d4a87
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4d4a87
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00406c2e
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov esi, dword [ebp - 0x10]
lea ecx, [edx - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
je 0x4d4a76
cmp dword [edi + 0xc], 0
jl 0x4d4a67
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4d4a67
call fcn.00406f9b
mov ecx, edi
mov esi, eax
call fcn.0040d570
add esi, 0x10
mov dword [ebp - 0x10], esi
jmp 0x4d4a76
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040d7d9
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040d570
jmp 0x4d4a8a
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x4d4a9a
mov edx, ebx
lea ecx, [ebp - 0x10]
call fcn.004d4882
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040d570
call fcn.004db23c
ret
Function at 0x4d50ea
Capabilities:
Check if file exists

Disassembly:
push 0x7c
mov eax, 0x524f3b
call fcn.004db2a7
mov dword [ebp - 0x78], edx
mov edx, ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
and dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], ecx
mov ecx, edx
push eax
mov dword [ebp - 0x88], edx
call fcn.00404b6a
push dword [ebp + 0x1c]
and dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp - 0x78]
inc eax
push esi
push edi
push ebx
push dword [ebp - 0x80]
mov ebx, dword [ebp - 0x84]
mov edx, ebx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], eax
call fcn.004d4da0
add esp, 0x14
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4d515f
mov eax, dword [ebx]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x4d5280
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x78], esp
push ebx
call fcn.00404b6a
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0046a490
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.0046de20
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x58]
call fcn.0046d340
mov edi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x40]
call fcn.0046d340
mov byte [ebp - 4], 5
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x4d51d4
mov edx, dword [edi]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4d51de
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
cmp eax, dword [edi + 0x10]
jne 0x4d51f5
push eax
push edx
push ecx
call fcn.00405321
add esp, 0xc
test eax, eax
je 0x4d51f9
mov byte [ebp - 0x74], 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0040568f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040568f
cmp byte [ebp - 0x74], 0
je 0x4d5268
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0046d3b0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4d522f
mov eax, dword [eax]
push eax
call esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov esi, eax
call fcn.0040568f
test esi, esi
je 0x4d5268
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0046d3b0
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00404329
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040568f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040dbbd
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0040dbbd
mov eax, ebx
call fcn.004db251
ret
Function at 0x4d5928
Capabilities:
Check os version

Disassembly:
push 0x120
mov eax, 0x52503a
call fcn.004db2a7
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.0042da6d
and dword [ebp - 4], 0
lea edi, [esi + 0x20]
push 0x58
push 0
push edi
call fcn.004de4e0
xor eax, eax
mov dword [esi + 0x78], 1
xor ecx, ecx
mov dword [edi], 0x58
lea ebx, [esi + 0x27c]
mov word [esi + 0x7c], cx
push 0x110
mov word [ebx], ax
lea eax, [ebp - 0x120]
push ecx
push eax
mov dword [ebp - 0x124], 0x114
call fcn.004de4e0
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d59be
cmp dword [ebp - 0x120], 5
jae 0x4d59c4
cmp dword [ebp - 0x120], 4
jne 0x4d59be
cmp dword [ebp - 0x11c], 0x5a
jae 0x4d59c4
mov dword [edi], 0x4c
and dword [esi + 0x5c], 0
lea eax, [esi + 0x7c]
mov dword [esi + 0x44], eax
mov eax, esi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0x104
mov dword [esi + 0x48], 0x100
mov dword [esi + 0x54], 0x880024
mov dword [esi + 0x2c], 0x549dc8
mov ecx, dword [0x57f2d8]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x64], 0x42d34c
mov dword [esi + 0x24], ecx
call fcn.004db251
ret 0x18

Function at 0x4d5d50
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4d9099
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x525104
call fcn.004db2a7
mov edi, ecx
mov dword [ebp - 0x30], edi
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x4d91cc
cmp byte [edi + 0x3e], bl
je 0x4d91cc
mov eax, dword [edi]
mov ecx, 0xffff
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.004db204
mov ecx, edi
call esi
mov ecx, 0xffff
cmp cx, ax
jne 0x4d90e5
xor al, al
jmp 0x4d91ce
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.0045253c
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
cmp ecx, 0x10
jb 0x4d911a
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d9124
mov edx, eax
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov esi, dword [edi]
push eax
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
call fcn.004db204
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x4d9153
sub eax, 1
jne 0x4d91b1
mov edi, dword [ebp - 0x30]
jmp 0x4d9159
mov edi, dword [ebp - 0x30]
mov byte [edi + 0x3e], bl
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d9169
mov edx, eax
mov esi, dword [ebp - 0x38]
sub esi, edx
je 0x4d9193
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d917a
mov edx, eax
push dword [edi + 0x4c]
push esi
push 1
push edx
call fcn.004ec849
add esp, 0x10
cmp esi, eax
jne 0x4d91bc
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [edi + 0x3e], 0
je 0x4d91ba
test esi, esi
jne 0x4d910c
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.0045246d
jmp 0x4d9106
dec eax
sub eax, 1
jne 0x4d91c0
inc eax
jmp 0x4d91be
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.004059be
mov al, bl
jmp 0x4d91ce
mov al, 1
call fcn.004db251
ret
Function at 0x4d96a7
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x525159
call fcn.004db2a7
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x4d96cc
xor eax, eax
jmp 0x4d9852
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4d96f8
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4d96f8
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x4d9852
cmp dword [esi + 0x4c], 0
je 0x4d984f
mov ecx, esi
call fcn.004d92cd
xor eax, eax
cmp dword [esi + 0x38], eax
jne 0x4d972c
push dword [esi + 0x4c]
push edi
call fcn.004ebd44
pop ecx
pop ecx
cmp ax, bx
je 0x4d984f
movzx ebx, di
jmp 0x4d984f
push eax
push 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x2c], di
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0045253c
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], edi
cmp ecx, 0x10
jb 0x4d9766
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d9770
mov edx, eax
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov esi, dword [edi]
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call fcn.004db204
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x4d9847
cmp eax, 1
jg 0x4d9821
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d97ba
mov edx, eax
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x4d97e9
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d97cb
mov edx, eax
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push edx
call fcn.004ec849
add esp, 0x10
cmp edi, eax
jne 0x4d981c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
jmp 0x4d97ec
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x40], edx
jne 0x4d9816
test edi, edi
jne 0x4d9758
cmp dword [ebp - 0x18], 0x20
jae 0x4d9841
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.0045246d
jmp 0x4d9752
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
jmp 0x4d9841
cmp eax, 3
jne 0x4d9847
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004ebd44
pop ecx
pop ecx
cmp ax, bx
je 0x4d9841
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx eax, bx
movzx ebx, ax
lea ecx, [ebp - 0x28]
call fcn.004059be
mov ax, bx
call fcn.004db251
ret 4

Function at 0x4df30f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x529d64
push 0x529d5c
push str.FlsAlloc
push 0
call fcn.004df288
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4df341
push dword [ebp + 8]
mov ecx, esi
call fcn.004db204
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]