joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1064ab1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x106b508]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x20e
xor ebx, ebx
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
mov dword [ebp - 0x428], ebx
call sub.msvcrt.dll_memset
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
mov dword [ebp - 0x430], ebx
call sub.msvcrt.dll_memset
or dword [ebp - 0x424], 0xffffffff
add esp, 0x18
push ebx
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 0x4d0008
push edi
mov dword [ebp - 0x42c], ebx
call dword [sym.imp.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x1064b4e
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jg 0x1064b42
mov edi, eax
jmp 0x1064c40
and eax, 0xffff
or eax, 0x80070000
jmp 0x1064b3b
push 0x100bb10
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01064a27
mov edi, eax
cmp edi, ebx
jl 0x1064c40
movzx eax, word [ebp - 0x420]
shr eax, 1
push eax
lea eax, [ebp - 0x41e]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01064a61
mov edi, eax
cmp edi, ebx
jl 0x1064c40
push 0x102bc88
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01064490
mov edi, eax
cmp edi, ebx
jl 0x1064c40
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01064525
mov edi, eax
cmp edi, ebx
jl 0x1064c40
mov esi, dword [ebp - 0x42c]
cmp esi, ebx
je 0x1064c40
lea eax, [ebp - 0x424]
push eax
push 0x11
call fcn.010648c2
mov edi, eax
cmp edi, ebx
jl 0x1064c2c
xor edi, edi
lea esi, [ebp + esi*2 - 0x212]
lea eax, [edi + 0x31]
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1064c15
inc edi
cmp di, 3
jb 0x1064bf4
jmp 0x1064c1f
mov dword [ebp - 0x428], 1
xor eax, eax
cmp dword [ebp - 0x428], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x424], 0xffffffff
je 0x1064c40
push dword [ebp - 0x424]
call fcn.010649da
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010634db
leave
ret 4
Function at 0x1064c58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x1064cb1
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jg 0x1064ca5
mov esi, eax
jmp 0x1064d52
and eax, 0xffff
or eax, 0x80070000
jmp 0x1064c9e
mov esi, dword [ebp - 0xc]
push 4
add esi, 0x1ff
push 0x3000
and esi, 0xfffffe00
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
jne 0x1064ceb
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jle 0x1064d3f
and eax, 0xffff
or eax, 0x80070000
jmp 0x1064d3f
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1064d21
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jle 0x1064d13
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80310000
jne 0x1064d41
xor esi, esi
jmp 0x1064d41
push ebx
push dword [ebp - 4]
push edi
call fcn.0106501e
xor esi, esi
cmp eax, 2
je 0x1064d41
inc esi
cmp eax, esi
jne 0x1064d41
push dword [ebp + 8]
call fcn.01064ab1
mov esi, eax
cmp edi, ebx
je 0x1064d52
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x403e00
Capabilities:
Enumerate files on windows

Disassembly:
call fcn.00403e0e
test eax, eax
je 0x4042f3
ret
push 0x174
mov eax, 0x4419e7
call fcn.0041f7fc
mov ebx, 0x460674
mov ecx, ebx
call fcn.00403853
push str._userlibs_.decls
push section..data
lea eax, [ebp - 0x40]
push eax
call fcn.00401394
cmp dword [eax + 0x14], 0xf
jbe 0x404329
mov eax, dword [eax]
lea ecx, [ebp - 0x180]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.0040372f
cmp edi, 0xffffffff
jne 0x40434a
xor eax, eax
jmp 0x4043b7
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402049
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.004043bd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040372f
test esi, esi
jne 0x40438c
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40434a
jmp 0x4043a7
push esi
lea eax, [ebp - 0x154]
mov esi, 0x4606a0
push eax
push str.Error_in_userlib__s____s
push esi
call fcn.00405759
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, ebx
call fcn.00403853
mov eax, esi
call fcn.0041f7ab
ret

Function at 0x40539b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x4053bf
jl 0x4053b6
test ebx, ebx
jne 0x4053bf
xor eax, eax
xor edx, edx
jmp 0x40547c
cmp dword [esi + 0x38], 0
je 0x4053d4
push eax
push ebx
push dword [ebp + 8]
call fcn.00405482
jmp 0x40547c
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x405417
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x405417
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00421c90
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x40541d
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x405471
mov ecx, esi
call fcn.00403552
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40545c
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.00424e49
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x405471
jmp 0x40542f
test edx, edx
je 0x405471
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.00424e49
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42019b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4201da
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4201da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4201da
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4201da
cmp dword [ecx + 0x74], 0xe
jbe 0x4201da
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4310fb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44d048
push 0x44d040
push str.FlsAlloc
push 0x1e
call fcn.00430f68
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43112f
push dword [ebp + 8]
mov ecx, esi
call dword [0x44614c]
call esi
jmp 0x431135
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431179
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44d058
push 0x44d050
push str.FlsGetValue
push 0x20
call fcn.00430f68
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4311b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x44614c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43285a
Capabilities:
Read file on windows

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

Function at 0x432c54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420400
mov eax, dword [0x45ee80]
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.0043172e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x432c96
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x432df2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00440f30
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 + 0x461298]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00433c31
mov ecx, dword [esi*4 + 0x461298]
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 0x432deb
cmp eax, dword [edi + ecx + 0x24]
jne 0x432deb
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 0x432deb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00433c31
add esp, 0x14
test edx, edx
jl 0x432deb
jg 0x432d61
test eax, eax
jb 0x432deb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x432deb
jl 0x432d7b
cmp dword [ebp - 0x1008], eax
ja 0x432deb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x432d99
test ebx, ebx
je 0x432dd2
cmp ecx, edi
jae 0x432dd2
mov al, byte [ecx]
cmp al, 0xd
jne 0x432db3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x432dbf
cmp byte [ecx + 1], 0xa
jne 0x432dbf
inc ecx
jmp 0x432dbf
movzx eax, al
movsx eax, byte [eax + 0x45f148]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x432d99
cmp edx, ebx
jne 0x432d99
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x432df0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041f789
leave
ret
Function at 0x4330e9
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 + 0x461298]
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 0x433129
cmp byte [ebx], 0xa
jne 0x433129
or byte [eax + edi + 0x28], 4
jmp 0x43312e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43322c
mov al, byte [edx]
cmp al, 0x1a
je 0x43320e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43315d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x433182
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43318c
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 0x43313f
jmp 0x43322c
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 0x433209
cmp dword [ebp - 0xc], 0
je 0x433209
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x461298]
test byte [eax + edi + 0x28], 0x48
je 0x4331e3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4331ce
mov byte [esi], dl
jmp 0x4331df
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x461298]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43322c
cmp byte [ebp - 1], 0xa
jne 0x4331f2
cmp esi, ebx
jne 0x4331f2
mov byte [esi], 0xa
jmp 0x43322b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00433c4f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43322c
mov byte [esi], 0xd
jmp 0x43322b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x461298]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x433228
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43322c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x433235
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 + 0x461298]
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 0x433278
cmp word [esi], dx
jne 0x433278
or byte [edi + eax + 0x28], 4
jmp 0x43327d
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 0x4333b6
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 0x433396
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4332bf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4332f5
cmp eax, edx
jae 0x433301
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 0x433297
jmp 0x4333b6
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 0x433392
cmp dword [ebp - 0x14], 0
je 0x433392
mov eax, dword [ebx*4 + 0x461298]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43336a
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4333b0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x461298]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x461298]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x461298]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4333b3
pop ebx
cmp word [ebp - 4], bx
jne 0x43337b
cmp esi, dword [ebp + 0xc]
jne 0x43337b
mov word [esi], bx
jmp 0x4333b3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00433c4f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4333b6
push 0xd
jmp 0x4333af
mov ecx, dword [ebx*4 + 0x461298]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4333ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4333b6
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 0x43ab9f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43ac3c
push ebx
push esi
call fcn.0043ab68
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00439949
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43abe9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43ac3b
push edi
push eax
call fcn.00433e2e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43ac09
call fcn.00430adb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43ac3a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00439949
add esp, 0x20
test eax, eax
jne 0x43ac28
push edi
call fcn.00430adb
jmp 0x43ac30
push ebx
call fcn.00430adb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x440b12
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00440a8e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x440c8a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x440c8a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x440c39
jg 0x440b6b
test eax, eax
je 0x440c2f
push 1
push 0x1000
call fcn.00430c6a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x440b91
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x440c26
push 0x8000
push ebx
call fcn.0042e88e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x440bbd
jg 0x440bb8
cmp ecx, 0x1000
jb 0x440bbd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004324cb
add esp, 0x10
cmp eax, 0xffffffff
je 0x440c02
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x440bb8
jl 0x440be9
test ecx, ecx
jne 0x440baa
push dword [ebp - 0xc]
push ebx
call fcn.0042e88e
push esi
call fcn.00430adb
add esp, 0xc
xor edi, edi
jmp 0x440c9b
cmp byte [edi + 0x24], 0
je 0x440c19
cmp dword [edi + 0x20], 5
jne 0x440c19
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x440c24
mov edi, dword [edi + 0x18]
jmp 0x440c26
xor edi, edi
push esi
call fcn.00430adb
pop ecx
jmp 0x440c9b
test ecx, ecx
jg 0x440bfb
jl 0x440c39
test eax, eax
jae 0x440bfb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00433c4f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x440c5c
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x440bfb
jmp 0x440c93
push ebx
call fcn.0043b60e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x440bfb
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x440c9b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x440c98
mov edi, dword [edi + 0x18]
jmp 0x440c9b
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00433c4f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x440e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x440e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x440e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406624
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 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
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 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x34f63438
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1c94058a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x1001b130
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x1001b148
mov ebx, 0x10000
lea edi, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x1001b15b
mov edi, 0xfff80000
mov eax, dword [0x101ca9a4]
mov ecx, dword [0x101ca9b0]
test eax, eax
jne 0x1001b175
test ecx, ecx
je 0x1001b188
mov eax, ecx
mov dword [0x101ca9a4], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x1001b188
cmp edx, ebx
jb 0x1001b188
cmp edx, edi
jbe 0x1001b20e
mov eax, ecx
mov dword [0x101ca9a4], eax
test ecx, ecx
je 0x1001b1b2
test eax, eax
je 0x1001b1a6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001b1a6
cmp ecx, ebx
jb 0x1001b1a6
cmp ecx, edi
jbe 0x1001b20e
mov eax, dword [eax + 4]
mov dword [0x101ca9a4], eax
test eax, eax
jne 0x1001b197
movzx eax, si
mov ecx, ebx
sub esi, eax
mov edx, esi
call fcn.100c21c0
test eax, eax
jne 0x1001b1d1
mov edx, edi
mov ecx, esi
call fcn.100c21c0
test eax, eax
je 0x1001b235
mov dword [eax], 0x52727464
xor edx, edx
mov dword [eax + 8], 0
mov esi, 0x2a7
mov ecx, dword [0x101ca9b0]
mov dword [eax + 4], ecx
lea ecx, [eax + 0xff60]
mov dword [0x101ca9a4], eax
mov dword [0x101ca9b0], eax
mov edi, edi
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x60
dec esi
jne 0x1001b200
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x1001b235
cmp esi, edi
ja 0x1001b235
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1011e040
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret