joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43449d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x110]
push ecx
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x118], 0x200
call fcn.004343c5
add esp, 0x10
test eax, eax
jne 0x43457e
lea eax, [ebp - 0x110]
push eax
call fcn.00433e55
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x434574
call fcn.0043306c
test eax, eax
mov eax, esi
je 0x434538
cmp word [esi], bx
je 0x434519
cmp word [eax], 0x5c
je 0x434514
inc eax
inc eax
cmp word [eax], bx
jne 0x434505
jmp 0x434519
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x434567
cmp byte [esi], bl
je 0x43454a
cmp byte [eax], 0x5c
je 0x434548
inc eax
cmp byte [eax], bl
jne 0x43453c
jmp 0x43454a
mov byte [eax], bl
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.00482ae9
pop ecx
cmp edi, ebx
jne 0x43457e
mov dword [ebp - 0x118], 0x200
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004812cc
leave
ret
Function at 0x4374ef
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebx + 0x3c]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x437526
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x4375e3
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x437560
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.004945a0
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
jmp 0x437560
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x4375e3
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x4375d3
test byte [esi + 0x14], 0x20
jne 0x4375d3
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.004945a0
mov ecx, dword [esi]
push edx
push eax
push dword [ebx + 0x80]
mov eax, dword [ebx + 0x3c]
push ecx
mov dword [ebp - 8], ecx
call fcn.0042fe42
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x4375c0
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp edi, dword [ebx + 0x20]
jbe 0x4375c8
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.00440fd9
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x43755e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x44d12b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x44d13d
xor eax, eax
jmp 0x44d22c
push esi
mov esi, dword [ebp + 8]
push 0x44
call fcn.004309f4
mov esi, eax
pop ecx
test esi, esi
je 0x44d22b
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.0044ceb5
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.0044cf78
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.0044cc65
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.0044ceb5
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.0044cc65
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.0044ceb5
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.0044d12b
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.0044cc65
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.0044cc65
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x44f1e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44f300
test esi, esi
je 0x44f300
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x44f2a4
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x44f2a4
xor cl, dl
test cl, 0x10
jne 0x44f2a4
mov al, byte [edi]
cmp al, byte [esi]
jne 0x44f2a4
push dword [esi + 8]
push dword [edi + 8]
call fcn.0044f1e8
pop ecx
pop ecx
test eax, eax
jne 0x44f2a4
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.0044f1e8
pop ecx
pop ecx
test eax, eax
jne 0x44f2a4
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.0044f30f
test eax, eax
jne 0x44f2a4
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x44f2a4
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x44f2a4
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x44f2a9
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x44f2a4
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x44f2d3
push 2
pop eax
jmp 0x44f30b
cmp byte [edi], 0x98
je 0x44f2d3
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x44f2d3
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x44f2a4
mov edx, dword [esi + 4]
test edx, edx
je 0x44f2a4
call fcn.00432365
test eax, eax
jne 0x44f2a4
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x44f2ef
xor eax, eax
inc eax
jmp 0x44f30b
test cx, cx
je 0x44f2fc
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x44f2a4
xor eax, eax
jmp 0x44f30b
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x464ecb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esi + 4]
call fcn.00463d6f
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x14]
imul edx, edx, 0x28
add edx, edi
cmp byte [ebx + 0x16], 0
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edx
jne 0x4650b9
jmp 0x4650ad
mov eax, 0x100
cmp word [edi + 0x10], ax
jne 0x4650aa
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x4650aa
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov esi, dword [ecx + 0x164]
and eax, dword [esp + 0x28]
and esi, dword [esp + 0x2c]
or eax, esi
je 0x4650aa
mov esi, dword [ecx + 0x14]
fldz
mov ebx, dword [ecx + 0x1c]
imul esi, esi, 0x28
fst qword [esp + 0x20]
fstp qword [esp + 0x30]
and dword [esp + 0x10], 0
add esi, ebx
and dword [esp + 0x14], 0
jmp 0x465049
mov eax, 0x200
cmp word [ebx + 0x10], ax
jne 0x464faa
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebx + 0xc]
jmp 0x464ff7
mov eax, dword [esp + 0x3c]
cmp dword [ebx + 8], eax
jne 0x465046
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
lea eax, [esp + 0x70]
push dword [ebp + 0x1c]
mov dword [esp + 0x74], ecx
push dword [ebp + 0x18]
mov byte [esp + 0x88], 0x45
push dword [ebp + 0x14]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
push eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.00465eb6
fld qword [esp + 0x68]
fadd qword [esp + 0x38]
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x78]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
fstp qword [esp + 0x38]
fld qword [esp + 0x70]
or dword [esp + 0x2c], eax
fadd qword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add esp, 0x18
fstp qword [esp + 0x30]
fld qword [ecx + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jnp 0x465054
add ebx, 0x28
cmp ebx, esi
jb 0x464f89
mov ecx, dword [ebp + 0x28]
cmp dword [ebp + 0x24], 0
je 0x465077
fld qword [esp + 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.00464e8d
fmul qword [esp + 0x38]
add esp, 8
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [ecx + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4650aa
mov eax, dword [esp + 0x10]
fld qword [esp + 0x20]
fstp qword [ecx + 0x10]
mov dword [ecx + 0x20], eax
fld qword [esp + 0x30]
mov eax, dword [esp + 0x14]
fstp qword [ecx + 0x18]
mov dword [ecx + 0x24], eax
mov dword [ecx], 0x10000000
mov dword [ecx + 8], edi
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, edx
jb 0x464f17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46fc8c
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x120
mov eax, 0x49eac2
call fcn.00486a61
mov esi, 0x104
push esi
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers_
lea eax, [ebp + 0x1c]
push esi
push eax
call fcn.0048557a
add esp, 0xc
lea eax, [ebp + 0x1c]
mov esi, 0x4e0034
push eax
mov ecx, esi
call fcn.00403f2f
call fcn.0040baca
test eax, eax
je 0x46fcf5
push str.avgtpx64.sys
jmp 0x46fcfa
push str.avgtpx86.sys
push esi
call fcn.0041505e
cmp dword [0x4e004c], 0x10
mov eax, dword [0x4e0038]
jae 0x46fd13
mov eax, 0x4e0038
push 3
push eax
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x128]
push eax
mov dword [ebp - 0x12c], ecx
call fcn.0040894f
and dword [ebp - 4], 0
push dword [ebp - 0x12c]
lea esi, [ebp]
call fcn.00404db2
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x12c], eax
je 0x46fd5e
push dword [ebp - 0x12c]
call fcn.00482ae9
pop ecx
push str.CDriverHelper::SetPath___path
lea esi, [ebp - 0x28]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp]
mov byte [ebp - 4], 3
call fcn.00404975
pop ecx
push 0
push 1
call fcn.00404f5a
push 0
push 1
mov esi, ebx
call fcn.00404f5a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.004812cc
add ebp, 0x124
leave
ret

Function at 0x4812cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4de270]
jne 0x4812d6
repz ret
jmp fcn.0048c63e
Function at 0x4984eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0048c04d
and dword [ebp - 4], 0
cmp dword [0x4e1990], 0
mov ebx, eax
jne 0x49859c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49864d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x49864d
push eax
call fcn.0048bfdb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4e1990], eax
call esi
push eax
call fcn.0048bfdb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e1994], eax
call esi
push eax
call fcn.0048bfdb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e1998], eax
call esi
push eax
call fcn.0048bfdb
pop ecx
mov dword [0x4e19a0], eax
test eax, eax
je 0x49859c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048bfdb
pop ecx
mov dword [0x4e199c], eax
mov eax, dword [0x4e199c]
cmp eax, ebx
je 0x4985f4
cmp dword [0x4e19a0], ebx
je 0x4985f4
push eax
call fcn.0048c056
push dword [0x4e19a0]
mov esi, eax
call fcn.0048c056
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4985f4
test edi, edi
je 0x4985f4
call esi
test eax, eax
je 0x4985eb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4985eb
test byte [ebp - 0xc], 1
jne 0x4985f4
or dword [ebp + 0x10], 0x200000
jmp 0x49862d
mov eax, dword [0x4e1994]
cmp eax, ebx
je 0x49862d
push eax
call fcn.0048c056
pop ecx
test eax, eax
je 0x49862d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49862d
mov eax, dword [0x4e1998]
cmp eax, ebx
je 0x49862d
push eax
call fcn.0048c056
pop ecx
test eax, eax
je 0x49862d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e1990]
call fcn.0048c056
pop ecx
test eax, eax
je 0x49864d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49864f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402019
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4858c0]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402080
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004029ba
lea ecx, [esp + 0x1c]
call fcn.00401e49
cmp eax, dword [esp + 0x14]
je 0x402098
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402a47
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402050
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040708b
add esp, 0x2c
ret
mov edx, str.QwruxAA
call fcn.00402da7
push eax
call fcn.00403020
mov eax, dword [ebp + 0x24]
pop ecx
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402a47
jmp 0x402082
Function at 0x4171e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416e84

Function at 0x4171ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417013

Function at 0x4175e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407fe0
mov eax, dword [0x42e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415916
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417629
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417785
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422570
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485580]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004187b7
mov ecx, dword [esi*4 + 0x485580]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41777e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41777e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41777e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004187b7
add esp, 0x14
test edx, edx
jl 0x41777e
jg 0x4176f4
test eax, eax
jb 0x41777e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41777e
jl 0x41770e
cmp dword [ebp - 0x1008], eax
ja 0x41777e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41772c
test ebx, ebx
je 0x417765
cmp ecx, edi
jae 0x417765
mov al, byte [ecx]
cmp al, 0xd
jne 0x417746
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417752
cmp byte [ecx + 1], 0xa
jne 0x417752
inc ecx
jmp 0x417752
movzx eax, al
movsx eax, byte [eax + 0x42e308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41772c
cmp edx, ebx
jne 0x41772c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417783
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040708b
leave
ret
Function at 0x417c55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x485580]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417c95
cmp byte [ebx], 0xa
jne 0x417c95
or byte [eax + edi + 0x28], 4
jmp 0x417c9a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417d98
mov al, byte [edx]
cmp al, 0x1a
je 0x417d7a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417cc9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417cee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417cf8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417cab
jmp 0x417d98
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417d75
cmp dword [ebp - 0xc], 0
je 0x417d75
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485580]
test byte [eax + edi + 0x28], 0x48
je 0x417d4f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417d3a
mov byte [esi], dl
jmp 0x417d4b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485580]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417d98
cmp byte [ebp - 1], 0xa
jne 0x417d5e
cmp esi, ebx
jne 0x417d5e
mov byte [esi], 0xa
jmp 0x417d97
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004187d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417d98
mov byte [esi], 0xd
jmp 0x417d97
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485580]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417d94
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417d98
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417da1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x485580]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417de4
cmp word [esi], dx
jne 0x417de4
or byte [edi + eax + 0x28], 4
jmp 0x417de9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x417f3c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417f1c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417e2b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417e61
cmp eax, edx
jae 0x417e6d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417e03
jmp 0x417f3c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417f18
cmp dword [ebp - 0x14], 0
je 0x417f18
mov eax, dword [ebx*4 + 0x485580]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417ef0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417eb9
mov word [esi], cx
jmp 0x417eec
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485580]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485580]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485580]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417f3c
pop ebx
cmp word [ebp - 4], bx
jne 0x417f01
cmp esi, dword [ebp + 0xc]
jne 0x417f01
mov word [esi], bx
jmp 0x417f39
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004187d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417f3c
push 0xd
jmp 0x417f35
mov ecx, dword [ebx*4 + 0x485580]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417f33
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417f3c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x43b654
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
add ecx, 0xc4c596a2
call fcn.0043b6a0
add ecx, esi
add ecx, esi
mov ecx, 0x32dd8b35
xor dword [ebx], edx
mov esi, ecx
sub ecx, 0x54adb685
sub ecx, 0xd1ee5169
add ebx, 1
mov esi, esi
cmp ebx, eax
jne fcn.0043b654
sub esi, 0x11b6d7d8
sub ecx, ecx
sub esi, 0x4c49277b
ret