joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db62d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5265f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004db5c2
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004c43d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4db67c
cmp dword [ebp - 0x1c], 5
jb 0x4db694
jmp 0x4db690
cmp dword [ebp - 0x10], 1
jne 0x4db694
cmp dword [ebp - 0x1c], 4
ja 0x4db690
jne 0x4db694
cmp dword [ebp - 0x18], 0
jbe 0x4db694
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4f6ee8
call fcn.004db496
test eax, eax
jge 0x4db6b5
mov byte [0x52f771], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c2fd1
add ebp, 0x78
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4c6e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6e000]
push edi
jmp 0x4c6e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c6e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e70
mov eax, 1
add ebx, ebx
jne 0x4c6e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c6ea4
jne 0x4c6ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6ec3
dec eax
add ebx, ebx
jne 0x4c6eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c6e88
add ebx, ebx
jne 0x4c6ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c6f15
xor ecx, ecx
sub eax, 3
jb 0x4c6edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c6f4a
sar eax, 1
mov ebp, eax
jmp 0x4c6ee6
add ebx, ebx
jne 0x4c6ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6eb4
inc ecx
add ebx, ebx
jne 0x4c6ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6eb4
add ebx, ebx
jne 0x4c6f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c6ef6
jne 0x4c6f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c6ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c6f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c6f26
jmp 0x4c6e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c6f34
add edi, ecx
jmp 0x4c6e76
pop esi
mov edi, esi
mov ecx, 0x3a8d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c6f52
cmp byte [edi], 0x11
jne 0x4c6f52
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 0x4c6f57
lea edi, [esi + 0xc1000]
mov eax, dword [edi]
or eax, eax
je 0x4c6fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc72dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc7430]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c6f84
mov ecx, edi
jns 0x4c6fb3
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 + 0xc7434]
or eax, eax
je 0x4c6fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4c6fa1
call dword [esi + 0xc7444]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4c7000
cmp al, 0xef
ja 0x4c6ff3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4c6fd5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4c6fe2
mov ebp, dword [esi + 0xc7438]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x4c7034
sub esp, 0xffffff80
jmp 0x46a08c
Function at 0x40b388
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40b3d2
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40b3a1
jmp 0x40b3d2
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40b3c2
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40c468
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40c49d
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40c4c7
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40c4c7
test edi, edi
je 0x40c494
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40c494
test edi, edi
je 0x40c4cf
mov eax, edi
jmp 0x40c496
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40c496
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_fx_team_w32_d_0000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.004101db
add esp, 0xc
int3
Function at 0x41020f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestBloomFilter.exe_gMozillaPoisonSize], eax
call fcn.0040c468
pop ecx
mov ecx, dword [sym.TestBloomFilter.exe_gMozillaPoisonSize]
mov dword [sym.TestBloomFilter.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410247
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestBloomFilter.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xea6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ea61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xea607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xea606a
add dl, dl
jne 0xea6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xea60dc
xor eax, eax
add dl, dl
jne 0xea6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xea617d
add dl, dl
jne 0xea60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xea60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xea60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xea60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xea60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xea6075
mov eax, 1
add dl, dl
jne 0xea60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xea60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xea60e1
sub eax, ebx
mov ebx, 1
jne 0xea6128
mov ecx, 1
add dl, dl
jne 0xea610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xea6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xea6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xea6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xea613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xea614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xea6136
cmp eax, 0x7d00
jae 0xea616d
cmp eax, 0x500
jb 0xea6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xea6075
cmp eax, 0x7f
ja 0xea6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xea6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xea619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xea6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4032b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4032ec
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40330c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040529c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4035a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040502c
test esi, esi
jne 0x4035da
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040511c
jmp 0x4035f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403448
mov edi, eax
test esi, esi
je 0x4035f8
cmp dword [ebx], 0
je 0x4035f8
dec esi
jmp 0x4035e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403608
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x55c008], 0x8088405
inc edx
mov dword [ebx + 0x55c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403e0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x55c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ea4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e84
xor eax, eax
push ebp
push 0x403e7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ec0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x55c024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x55c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404dd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56704c], 0
je 0x404e39
cmp word [0x567220], 0xd7b2
jne 0x404e01
cmp dword [0x567228], 0
jbe 0x404e01
mov eax, 0x56721c
call dword [0x567238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e60
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55c030], 0
jne 0x404e55
push 0
push 0x55c75c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x55c034], 0
je 0x404fd6
mov edx, esi
mov eax, ebx
call dword [0x55c034]
jmp 0x404fe5
mov eax, 8
call fcn.0040309c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x56704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f78
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406ce8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406d6b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406d6b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406df4
xor eax, eax
push ebp
push 0x406ded
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406b24
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406dd2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406f54
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406dd2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406df4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406f0e
cmp byte [ebp - 0xd], 0
jne 0x406e3b
cmp byte [ebp - 0x12], 0
je 0x406f0e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406e54
dec ebx
cmp byte [ebx], 0x2e
je 0x406e63
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406e53
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406f0e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406ea0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406f0e
cmp byte [ebp - 0xd], 0
je 0x406f0e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406f0e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d938
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40da93
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40daa4
call fcn.0040db78
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
push 0x40dab4
call fcn.0040db78
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x40da03
cmp dword [ebp - 0x10], 0
je 0x40da03
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040d900
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00405a08
mov eax, dword [ebp - 0x18]
call fcn.00405a18
push eax
call ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40da03
xor eax, eax
push ebp
push 0x40d9fc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
push 0
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0xc], eax
call fcn.00404a30
jmp 0x40da68
lea edx, [ebp - 4]
xor eax, eax
call fcn.004032b0
xor eax, eax
push ebp
push 0x40da61
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040d900
mov eax, dword [ebp - 0x20]
call fcn.0040550c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da68
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da9a
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405050
lea eax, [ebp - 0x18]
call fcn.00405854
lea eax, [ebp - 4]
call fcn.0040502c
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0040550c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e83c
and ebx, 0xfffffff8
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesA
push edi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40eea4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f033
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5699e0], 0
je 0x40eeda
mov eax, ebx
call dword [0x5699e0]
movzx eax, byte [edi]
sub al, 2
jae 0x40ef80
mov eax, ebx
call fcn.00405308
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405794
mov eax, ebx
call fcn.00405308
test eax, eax
jns 0x40ef06
call fcn.00403edc
push eax
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
mov eax, ebx
call fcn.0040550c
push eax
call sub.user32.dll_CharToOemBuffA
test eax, eax
jne 0x40ef2b
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004050c4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405308
test eax, eax
jns 0x40ef42
call fcn.00403edc
push eax
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
push esi
call sub.kernel32.dll_WriteConsoleA
test eax, eax
je 0x40ef5c
cmp dword [ebp - 0x10], 0
jne 0x40ef74
mov eax, 0x40f050
call fcn.0040edc8
test al, al
je 0x40ef6f
mov byte [edi], 3
jmp 0x40ef80
mov byte [edi], 2
jmp 0x40ef80
mov byte [ebp - 9], 0
mov byte [edi], 1
jmp 0x40f018
mov byte [ebp - 9], 1
cmp byte [edi], 3
jne 0x40efc8
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.00405308
test eax, eax
jns 0x40ef9f
call fcn.00403edc
push eax
mov eax, 1
dec eax
test ebx, ebx
je 0x40efaf
cmp eax, dword [ebx - 4]
jb 0x40efb4
call fcn.00403edc
inc eax
lea eax, [ebx + eax - 1]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_FlushFileBuffers
jmp 0x40f018
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004050c4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405308
test eax, eax
jns 0x40efe9
call fcn.00403edc
push eax
lea eax, [ebp - 4]
call fcn.00405564
mov edx, 1
dec edx
test eax, eax
je 0x40f001
cmp edx, dword [eax - 4]
jb 0x40f006
call fcn.00403edc
inc edx
lea eax, [eax + edx - 1]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_FlushFileBuffers
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f03a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405050
ret