joyce8/EMBER2024-capa huggingface dataset:
Function at 0x80675c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x80688e
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x80688e
cmp dword [esp + 0x28], 0
je 0x80688e
mov dword [esp], str.borlndmm
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x80688e
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysGetMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [edi], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysFreeMem_qqrpv
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysReallocMem_qqrpvi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysAllocMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysRegisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [esp], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str._Borlndmm_SysUnregisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0xb7b408], eax
cmp dword [ebp], 0
jne 0x806842
mov dword [ebp], 0x80672c
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x806851
mov dword [eax], 0x80671c
mov ecx, dword [esi]
test ecx, ecx
je 0x80687e
cmp dword [edi], 0
je 0x80688e
cmp dword [ebx], 0
je 0x80688e
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x80688e
cmp dword [ebp], 0
je 0x80688e
cmp dword [eax], 0
je 0x80688e
xor eax, eax
test ecx, ecx
setne al
jmp 0x806890
mov dword [esi], 0x80671c
mov ecx, 0x80671c
cmp dword [edi], 0
jne 0x80685c
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x807d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.00809258
test bh, 0xc0
jne 0x807da3
mov eax, dword [0xad342c]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x807dc7
sar eax, 6
mov esi, dword [eax + 0xad2e6c]
mov eax, dword [esp + 0x40]
test bh, 1
je 0x807def
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0xad2ea8]
and al, byte [esp + 0x48]
mov ebp, 0x80
js 0x807e03
mov ebp, 1
jmp 0x807e03
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ebp, ebp
cmp eax, 0xffffffff
je 0x807e03
mov ebp, eax
mov eax, ebx
and al, 3
je 0x807e1c
cmp al, 2
je 0x807e23
cmp al, 1
jne 0x807f1f
mov edi, 0x40000000
jmp 0x807e28
mov edi, 0x80000000
jmp 0x807e28
mov edi, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
jb 0x807e3d
mov edx, 3
xor ecx, ecx
cmp edi, 0x80000000
sete al
test bl, 4
je 0x807e51
mov cl, al
mov edx, ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov eax, ebx
shr eax, 7
not eax
and eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x807efc
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.00807cd8
test eax, eax
je 0x807ec5
or edi, 0x2000
and edi, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00809418
mov edi, eax
cmp edi, 0xffffffff
jne 0x807f2d
mov dword [esp], 4
call fcn.00809804
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x807f2d
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
jne 0x807f13
mov ecx, 2
cmp eax, 0x6e
je 0x807f1a
mov ecx, eax
mov dword [esp], ecx
jmp 0x807f26
mov dword [esp], 1
call fcn.00809804
mov edi, eax
call fcn.008092a8
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x808118
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.00809258
test bh, 0xc0
jne 0x80813b
mov eax, dword [0xad342c]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x80815f
sar eax, 6
mov esi, dword [eax + 0xad2e88]
mov eax, dword [esp + 0x40]
test bh, 1
je 0x808187
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0xad2ea8]
and al, byte [esp + 0x48]
mov ebp, 0x80
js 0x80819b
mov ebp, 1
jmp 0x80819b
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesW
sub esp, 4
xor ebp, ebp
cmp eax, 0xffffffff
je 0x80819b
mov ebp, eax
mov eax, ebx
and al, 3
je 0x8081b4
cmp al, 2
je 0x8081bb
cmp al, 1
jne 0x8082b7
mov edi, 0x40000000
jmp 0x8081c0
mov edi, 0x80000000
jmp 0x8081c0
mov edi, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
jb 0x8081d5
mov edx, 3
xor ecx, ecx
cmp edi, 0x80000000
sete al
test bl, 4
je 0x8081e9
mov cl, al
mov edx, ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov eax, ebx
shr eax, 7
not eax
and eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x808294
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.00807cd8
test eax, eax
je 0x80825d
or edi, 0x2000
and edi, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00809418
mov edi, eax
cmp edi, 0xffffffff
jne 0x8082c5
mov dword [esp], 4
call fcn.00809804
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x8082c5
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
jne 0x8082ab
mov ecx, 2
cmp eax, 0x6e
je 0x8082b2
mov ecx, eax
mov dword [esp], ecx
jmp 0x8082be
mov dword [esp], 1
call fcn.00809804
mov edi, eax
call fcn.008092a8
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x808660
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0xad335c], eax
jbe 0x80869d
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0xb7b510]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x8086a4
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x8086ba
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x8086b6
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.00809804
add esp, 0x10
add esp, 0xc
ret
Function at 0x8086d8
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0xad335c], eax
jbe 0x808715
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0xb7b510]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x808726
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.00809804
add esp, 0x10
add esp, 0xc
ret
call fcn.008098a4
add esp, 0xc
ret

Function at 0x8087dc
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push esi
sub esp, 0x118
mov eax, dword [esp + 0x120]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
sub esp, 4
cmp eax, 1
jne 0x808879
lea esi, [esp + 0x14]
mov dword [esp + 4], esi
mov dword [esp], 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
sub esp, 8
test eax, eax
je 0x808879
xor eax, eax
cmp dword [0xb7b840], 1
je 0x80887e
movsx eax, byte [esp + 0x14]
mov dword [esp], eax
call fcn.008144b4
mov ecx, eax
mov edx, ecx
shl edx, 0x18
add edx, 0xbfffffff
xor eax, eax
cmp edx, 0x1afffffe
ja 0x80887e
xor eax, eax
cmp byte [esp + 0x15], 0x3a
jne 0x80887e
mov byte [esp + 0x10], 0x3d
mov byte [esp + 0x11], cl
mov word [esp + 0x12], 0x3a
mov dword [esp + 4], esi
lea eax, [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetEnvironmentVariableA
sub esp, 8
mov ecx, eax
xor eax, eax
cmp ecx, 1
je 0x80887e
call fcn.008098a4
add esp, 0x118
pop esi
ret

Function at 0x8088d8
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebx
push edi
push esi
sub esp, 0x120
mov esi, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
mov dword [esi], 0
mov byte [esp + 0x18], 0x3d
add eax, 0x40
mov byte [esp + 0x19], al
mov word [esp + 0x1a], 0x3a
lea edi, [esp + 0x1c]
mov dword [esp + 4], edi
lea ebx, [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 8], 0x104
call sub.KERNEL32.DLL_GetEnvironmentVariableA
sub esp, 0xc
test eax, eax
jne 0x808953
mov al, byte [esp + 0x19]
mov byte [esp + 0x1c], al
mov word [esp + 0x1d], 0x5c3a
mov byte [esp + 0x1f], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
sub esp, 8
cmp eax, 1
jne 0x80899b
mov dword [esp], edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
sub esp, 4
cmp eax, 1
jne 0x80899b
mov dword [esp + 0x1c], 0x5c3a41
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp], edi
call sub.KERNEL32.DLL_GetDriveTypeA
sub esp, 4
cmp eax, 2
jb 0x80898a
inc dword [esi]
movzx eax, byte [esp + 0x1c]
inc al
mov byte [esp + 0x1c], al
cmp al, 0x5b
jl 0x808978
jmp 0x8089a0
call fcn.008098a4
add esp, 0x120
pop esi
pop edi
pop ebx
ret

Function at 0x80a884
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x80a8a1
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.008098a4
Function at 0x80e6d4
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.008078f0
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.008078f0
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.008078f0
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.008078f0
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.008120a0
mov edi, dword [esi + 0x24]
test edi, edi
je 0x80e7c8
mov dword [esp], edi
call fcn.008078f0
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.008078f0
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.008078f0
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00806b38
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x80e81d
jmp 0x80e865
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.008078f0
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.008078f0
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.00806b20
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x80e865
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.008078f0
lea eax, [eax + ebp + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.0080778b
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.008077a4
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.008078f0
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.008077a4
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.008078f0
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x80e867
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x8102f0
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00806b20
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00806b20
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x810363
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x810372
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00806b20
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00806b20
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00806b20
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.00806b20
add esp, 0x10
mov esi, eax
test esi, esi
je 0x81045c
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x81046b
push esi
call fcn.00811690
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.00806b30
add esp, 0x10
mov eax, 1
jmp 0x810476
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x810474
push esi
call fcn.00806b30
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x814bec
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x814cb2
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.DLL_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push str._02d__02d__04d__02d:_02d:_02d._03d
push 0xb7b81c
call fcn.0081d856
add esp, 0x24
push 0xb7b81c
call fcn.008078f0
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0xb7b81c
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.008078f0
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.KERNEL32.DLL_WriteFile
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x814ce4
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0xb7b83c]
test eax, eax
mov ecx, dword [0xb7b838]
jne 0x814da8
test ecx, ecx
jne 0x814da8
cmp dword [0xad4968], 0
je 0x814dde
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.0081444c
add esp, 0x10
test eax, eax
jne 0x814d54
sub esp, 8
push 0x3a
push esi
call fcn.0081444c
add esp, 0x10
test eax, eax
je 0x814d57
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x814d99
call sub.KERNEL32.DLL_GetCurrentThreadId
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x814e74
push eax
call fcn.0081d44e
add esp, 4
cmp dword [esp + 0xc], 0
mov ecx, 0x11010
je 0x814d99
mov ecx, 0x12010
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x814e2b
cmp ecx, 0xffffffff
je 0x814e2b
test ecx, ecx
je 0x814dbf
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0xb7b83c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x814e2b
cmp byte [eax], 0
je 0x814e2b
sub esp, 8
push edi
push eax
call fcn.00814bec
add esp, 0xa0
jmp 0x814e31
sub esp, 0xc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0xad4730
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.008078f0
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push ebx
push 2
push 0xad4730
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x816c90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0xb7f8f8
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0xb82da8]
cmp eax, 0x232
jl 0x816cfa
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.008077a4
mov dword [esp], edi
call fcn.00814e54
mov eax, dword [0xb82da8]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0xb7f8f8]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0xb82da8]
lea ecx, [eax + 1]
mov dword [0xb82da8], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0xb7f8f8]
mov dword [esi], eax
mov dword [esp], 0xb7f8f8
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret

Function at 0x816d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.008077a4
mov dword [esp], esi
call fcn.00814e54
add esp, 0x58
pop esi
ret

Function at 0x81c95c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004ac3f4
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4c5e71
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4c5e6b
test ah, 4
je 0x4c5e6b
test al, 0x10
je 0x4c5e6b
mov eax, esi
call fcn.004ac3f4
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4c5e71
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
jmp 0x4c5e1c
Function at 0x418dfc
Capabilities:
Read file on windows

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

Function at 0x4191f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f50
mov eax, dword [0x47cd00]
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.00415f6b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419238
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419394
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423500
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 + 0x47e8e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1ed
mov ecx, dword [esi*4 + 0x47e8e8]
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 0x41938d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41938d
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 0x41938d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1ed
add esp, 0x14
test edx, edx
jl 0x41938d
jg 0x419303
test eax, eax
jb 0x41938d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41938d
jl 0x41931d
cmp dword [ebp - 0x1008], eax
ja 0x41938d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41933b
test ebx, ebx
je 0x419374
cmp ecx, edi
jae 0x419374
mov al, byte [ecx]
cmp al, 0xd
jne 0x419355
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419361
cmp byte [ecx + 1], 0xa
jne 0x419361
inc ecx
jmp 0x419361
movzx eax, al
movsx eax, byte [eax + 0x47cfd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41933b
cmp edx, ebx
jne 0x41933b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419392
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004071da
leave
ret