joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40746c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov byte [ebp - 0x2c], 1
mov byte [ebp - 0x2b], 0
mov word [ebp - 0x2a], 4
mov dword [ebp - 0x28], 0x40b650
mov dword [ebp - 0x24], 0x40b650
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40b640
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
push edx
push edx
je 0x4074d0
xor eax, eax
jmp 0x4074fd
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4074fd
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
sub esp, 0xc
test eax, eax
jne 0x4074cc
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x407535
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x42b740], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x42b740
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x4075b1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x407802
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x40782d
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
mov edx, 0
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x407890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x1c]
mov esi, 0x65
sub esp, 0x2c
mov ebx, dword [ebp + 8]
dec esi
je 0x4078e7
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
add byte [ebp - 0x1a], dl
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4078a4
mov eax, ebx
jmp 0x4078ec
mov byte [ebx], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x4078f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp - 0x14]
sub esp, 0x34
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov byte [ebx], 0
mov dword [esp + 0x10], edx
sbb eax, eax
mov dword [esp + 8], 0
xor al, al
add eax, 0x20119
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x407998
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x407981
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x407984
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407f17
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x42af40
mov dword [esp + 4], eax
call fcn.00407a72
push ebx
push ebx
mov dword [esp], 0x42af40
call fcn.004076f1
test eax, eax
push esi
jne 0x407f49
xor eax, eax
jmp 0x407fc1
mov dword [esp], eax
mov ebx, eax
call fcn.00407af3
test byte [0x42bc84], 0x80
push ecx
je 0x407f67
mov al, byte [ebx]
test al, al
je 0x407f45
cmp al, 0x5c
je 0x407f45
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x42af40
mov dword [esp], 0x42af40
call esi
push ecx
cmp ebx, eax
mov dword [esp], 0x42af40
jge 0x407fa6
call fcn.00407edf
test eax, eax
push edx
je 0x407f97
test byte [eax], 0x10
je 0x407f45
mov dword [esp], 0x42af40
call fcn.0040768a
push eax
jmp 0x407f73
call fcn.00407aae
push eax
mov dword [esp], 0x42af40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
push edx
setne al
movzx eax, al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407fca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408007
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x40800e
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40b440
add eax, ebx
mov dword [esp + 8], edx
mov dword [esp + 4], str._s_s.dll
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408654
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x408671
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x40869f
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x40867a
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x408673
jmp 0x408665
cmp edx, ebx
je 0x4086b8
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x40869f
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x10325910
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10325afd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a5000]
push edi
jmp 0x1032593a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10325941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10325930
mov eax, 1
add ebx, ebx
jne 0x10325953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10325964
jne 0x10325983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10325983
dec eax
add ebx, ebx
jne 0x10325970
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10325948
add ebx, ebx
jne 0x1032597f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x103259d5
xor ecx, ecx
sub eax, 3
jb 0x1032599b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10325a0a
sar eax, 1
mov ebp, eax
jmp 0x103259a6
add ebx, ebx
jne 0x103259a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10325974
inc ecx
add ebx, ebx
jne 0x103259b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10325974
add ebx, ebx
jne 0x103259c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x103259b6
jne 0x103259d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x103259b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x103259f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x103259e6
jmp 0x10325936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x103259f4
add edi, ecx
jmp 0x10325936
pop esi
mov edi, esi
mov ecx, 0x87e5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10325a12
cmp byte [edi], 0x22
jne 0x10325a12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10325a17
lea edi, [esi + 0x314000]
mov eax, dword [edi]
or eax, eax
je 0x10325a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x325fac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x326100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10325a44
mov ecx, edi
jns 0x10325a73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x326104]
or eax, eax
je 0x10325a89
mov dword [ebx], eax
add ebx, 4
jmp 0x10325a61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10325ac0
cmp al, 0xef
ja 0x10325ab3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10325a95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10325aa2
mov ebp, dword [esi + 0x326108]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10325af4
sub esp, 0xffffff80
jmp 0x100f84f0
Function at 0x403517
Capabilities:
Terminate process

Disassembly:
jmp 0x453679
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45368a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405768
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403634
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b835
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b846
pop esi
ret
push ebx
push edi
push esi
call fcn.0049b71c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403ec7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b86e
push ebx
push esi
push edi
call fcn.00405565
add esp, 0xc
push 0
call fcn.00406078
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405623
Capabilities:
Parse pe header

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

Function at 0x44062c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403693
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44066b
sub eax, 1
je 0x440666
sub eax, 1
je 0x440662
xor eax, eax
leave
ret
push 3
jmp 0x44066d
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x495614
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d48
mov eax, dword [0x4cb040]
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.00405c9f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x495656
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4957b2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405de9
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 + 0x4ce858]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004031cf
mov ecx, dword [esi*4 + 0x4ce858]
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 0x4957ab
cmp eax, dword [edi + ecx + 0x24]
jne 0x4957ab
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 0x4957ab
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004031cf
add esp, 0x14
test edx, edx
jl 0x4957ab
jg 0x495721
test eax, eax
jb 0x4957ab
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4957ab
jl 0x49573b
cmp dword [ebp - 0x1008], eax
ja 0x4957ab
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x495759
test ebx, ebx
je 0x495792
cmp ecx, edi
jae 0x495792
mov al, byte [ecx]
cmp al, 0xd
jne 0x495773
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49577f
cmp byte [ecx + 1], 0xa
jne 0x49577f
inc ecx
jmp 0x49577f
movzx eax, al
movsx eax, byte [eax + 0x4cb3a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x495759
cmp edx, ebx
jne 0x495759
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4957b0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fb3
leave
ret
Function at 0x495ef1
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 + 0x4ce858]
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 0x495f31
cmp byte [ebx], 0xa
jne 0x495f31
or byte [eax + edi + 0x28], 4
jmp 0x495f36
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x496034
mov al, byte [edx]
cmp al, 0x1a
je 0x496016
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x495f65
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x495f8a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x495f94
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 0x495f47
jmp 0x496034
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 0x496011
cmp dword [ebp - 0xc], 0
je 0x496011
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ce858]
test byte [eax + edi + 0x28], 0x48
je 0x495feb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x495fd6
mov byte [esi], dl
jmp 0x495fe7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ce858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x496034
cmp byte [ebp - 1], 0xa
jne 0x495ffa
cmp esi, ebx
jne 0x495ffa
mov byte [esi], 0xa
jmp 0x496033
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004018f2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x496034
mov byte [esi], 0xd
jmp 0x496033
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ce858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496030
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496034
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x496090
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 + 0x4ce858]
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 0x4960d3
cmp word [esi], dx
jne 0x4960d3
or byte [edi + eax + 0x28], 4
jmp 0x4960d8
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 0x49622b
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 0x49620b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49611a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x496150
cmp eax, edx
jae 0x49615c
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 0x4960f2
jmp 0x49622b
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 0x496207
cmp dword [ebp - 0x14], 0
je 0x496207
mov eax, dword [ebx*4 + 0x4ce858]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4961df
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4961a8
mov word [esi], cx
jmp 0x4961db
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ce858]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ce858]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ce858]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49622b
pop ebx
cmp word [ebp - 4], bx
jne 0x4961f0
cmp esi, dword [ebp + 0xc]
jne 0x4961f0
mov word [esi], bx
jmp 0x496228
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004018f2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49622b
push 0xd
jmp 0x496224
mov ecx, dword [ebx*4 + 0x4ce858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496222
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49622b
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 0x499dd4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cb040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x499e1f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049a296
test al, al
jne 0x499e19
sub edx, 2
cmp edx, edi
jne 0x499dff
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x499e41
lea eax, [edi + 2]
cmp edx, eax
je 0x499e41
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004999cd
add esp, 0x10
jmp 0x499f3b
push esi
lea ecx, [ebp - 0x255]
call fcn.0049a296
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499e84
push dword [ebp - 0x25c]
jmp 0x499e31
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x499ec1
cmp word [ebp - 0x226], 0
je 0x499ee2
cmp word [ebp - 0x226], ax
jne 0x499ec1
cmp word [ebp - 0x224], 0
je 0x499ee2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004999cd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x499f2e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499e9b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499f16
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499f3b
push 0x4993b5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004053d0
add esp, 0x10
jmp 0x499f0b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fb3
leave
ret
Function at 0x1000b3b0
Capabilities:
Delete file

Disassembly:
jmp 0x1002a6d0
sub esp, 0x218
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x21c]
je 0x1002a712
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1002a280
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1002a760
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1002a760
cmp dword [esp + 4], 0xffffffff
je 0x1002a760
push eax
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4