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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0066fb1c
test byte [ebp + 0xd], 0xc0
jne 0x66e368
mov eax, dword [0x82bc54]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x66e375
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x66e3a2
je 0x66e3b4
sub ecx, 0x100
je 0x66e3c2
sub ecx, 0x100
je 0x66e3c9
sub ecx, 0x100
je 0x66e3bb
jmp 0x66e3d0
sub ecx, 0x600
je 0x66e3c9
sub ecx, 0x100
je 0x66e3b4
jmp 0x66e3d0
mov edi, 1
jmp 0x66e3d5
mov edi, 2
jmp 0x66e3d5
mov edi, 4
jmp 0x66e3d5
mov edi, 5
jmp 0x66e3d5
mov edi, 3
test byte [ebp + 0xd], 1
je 0x66e3fc
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x82b6cc]
test al, 0x80
je 0x66e3f5
mov ebx, 0x80
jmp 0x66e40e
mov ebx, 1
jmp 0x66e40e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x66e40e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x66e420
je 0x66e429
dec eax
je 0x66e432
jmp 0x66e43b
mov dword [ebp - 4], SysStringLen
jmp 0x66e44a
mov dword [ebp - 4], 0x40000000
jmp 0x66e44a
mov dword [ebp - 4], 0xc0000000
jmp 0x66e44a
push 1
call fcn.0066ff14
pop ecx
mov ebx, eax
jmp 0x66e53a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x66e466
sub eax, 0x10
je 0x66e46d
sub eax, 0x10
je 0x66e476
sub eax, 0x10
je 0x66e47f
jmp 0x66e47f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x66e486
mov dword [ebp - 8], 1
jmp 0x66e486
mov dword [ebp - 8], 2
jmp 0x66e486
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x66e4f3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x66e4e8
test byte [ebp + 0xd], 1
je 0x66e4e3
mov ebx, 0x50
jmp 0x66e4e8
mov ebx, 2
push ebx
call fcn.0066ff14
pop ecx
mov ebx, eax
jmp 0x66e53a
mov edi, esi
push edi
call fcn.0066e2a8
pop ecx
test eax, eax
je 0x66e507
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x66e513
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0066fc3c
add esp, 8
mov ebx, eax
inc eax
jne 0x66e53a
push 4
call fcn.0066ff14
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0066fb50
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x66e6fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0066fb1c
test byte [ebp + 0xd], 0xc0
jne 0x66e720
mov eax, dword [0x82bc54]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x66e72d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x66e75a
je 0x66e76c
sub ecx, 0x100
je 0x66e77a
sub ecx, 0x100
je 0x66e781
sub ecx, 0x100
je 0x66e773
jmp 0x66e788
sub ecx, 0x600
je 0x66e781
sub ecx, 0x100
je 0x66e76c
jmp 0x66e788
mov edi, 1
jmp 0x66e78d
mov edi, 2
jmp 0x66e78d
mov edi, 4
jmp 0x66e78d
mov edi, 5
jmp 0x66e78d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x66e7b4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x82b6cc]
test al, 0x80
je 0x66e7ad
mov ebx, 0x80
jmp 0x66e7c6
mov ebx, 1
jmp 0x66e7c6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x66e7c6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x66e7d8
je 0x66e7e1
dec eax
je 0x66e7ea
jmp 0x66e7f3
mov dword [ebp - 4], SysStringLen
jmp 0x66e802
mov dword [ebp - 4], 0x40000000
jmp 0x66e802
mov dword [ebp - 4], 0xc0000000
jmp 0x66e802
push 1
call fcn.0066ff14
pop ecx
mov ebx, eax
jmp 0x66e8f2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x66e81e
sub eax, 0x10
je 0x66e825
sub eax, 0x10
je 0x66e82e
sub eax, 0x10
je 0x66e837
jmp 0x66e837
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x66e83e
mov dword [ebp - 8], 1
jmp 0x66e83e
mov dword [ebp - 8], 2
jmp 0x66e83e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x66e8ab
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x66e8a0
test byte [ebp + 0xd], 1
je 0x66e89b
mov ebx, 0x50
jmp 0x66e8a0
mov ebx, 2
push ebx
call fcn.0066ff14
pop ecx
mov ebx, eax
jmp 0x66e8f2
mov edi, esi
push edi
call fcn.0066e2a8
pop ecx
test eax, eax
je 0x66e8bf
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x66e8cb
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0066fc3c
add esp, 8
mov ebx, eax
inc eax
jne 0x66e8f2
push 4
call fcn.0066ff14
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0066fb50
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x66ec70
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x66ec8c
call fcn.0066ff80
jmp 0x66ecfb
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x66eca8
call fcn.0066ff80
jmp 0x66ecfb
cmp dword [0xd236f8], 1
je 0x66ecf9
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00677400
pop ecx
cmp al, 0x41
jl 0x66ecf9
cmp al, 0x5a
jg 0x66ecf9
cmp byte [ebp - 0x107], 0x3a
jne 0x66ecf9
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x66ecf9
call fcn.0066ff80
jmp 0x66ecfb
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x66ed1c
call fcn.0066ff80
jmp 0x66ed3d
test byte [ebp + 0xc], 0x80
jne 0x66ed27
or ebx, 1
jmp 0x66ed2a
and ebx, 0xfffffffe
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
dec eax
je 0x66ed3b
call fcn.0066ff80
jmp 0x66ed3d
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x66ed4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x66ed7c
movsx edx, byte [ebp - 0x104]
sub edx, 0x61
inc edx
jmp 0x66ed87
movsx edx, byte [ebp - 0x104]
sub edx, 0x41
inc edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x66edf6
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x66edf6
call fcn.0066ff80
jmp 0x66ee31
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x66ee06
call fcn.0066ff80
jmp 0x66ee31
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x66ee2c
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x66ee2a
cmp ebx, 1
je 0x66ee2a
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x66ee17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x66f7b4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x82bb84]
jb 0x66f7d8
push 6
call fcn.0066ff14
pop ecx
jmp 0x66f86f
push ebx
call fcn.0066fb60
pop ecx
mov esi, dword [ebx*4 + 0xd233f8]
push 0x24
push 0
push edi
call fcn.0066cc88
add esp, 0xc
push esi
call sub.KERNEL32.DLL_GetFileType
dec eax
je 0x66f80c
dec eax
je 0x66f804
dec eax
je 0x66f85e
jmp 0x66f864
mov word [edi + 4], 0x2000
jmp 0x66f864
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push esi
call sub.KERNEL32.DLL_GetFileTime
dec eax
je 0x66f82a
call fcn.0066ff80
mov esi, eax
jmp 0x66f866
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
test byte [ebx*4 + 0x82bb89], 1
je 0x66f84d
xor eax, eax
jmp 0x66f852
mov eax, 1
push eax
push edi
call fcn.00679888
add esp, 0x18
jmp 0x66f864
mov word [edi + 4], 0x1000
xor esi, esi
push ebx
call fcn.0066fbf4
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x66f878
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0066c62c
pop ecx
mov ebx, eax
test eax, eax
jne 0x66f89c
xor eax, eax
jmp 0x66f945
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x66f8bd
cmp esi, 0x104
jb 0x66f8c8
push ebx
call fcn.0066c63c
pop ecx
xor eax, eax
jmp 0x66f945
cmp byte [ebx + 1], 0x3a
jne 0x66f8f8
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x66f8f8
push ebx
call fcn.0066c63c
pop ecx
xor eax, eax
jmp 0x66f945
inc esi
test edi, edi
je 0x66f93b
cmp esi, dword [ebp + 0x10]
jbe 0x66f90d
push ebx
call fcn.0066c63c
pop ecx
xor eax, eax
jmp 0x66f945
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0066c63c
pop ecx
mov eax, edi
jmp 0x66f945
push esi
push ebx
call fcn.0066c64c
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x66f9ac
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x66f9f2
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x66f9e0
cmp eax, dword [ebp + 0x10]
jle 0x66fa7b
call fcn.00677580
mov dword [eax], 8
xor eax, eax
jmp 0x66fae8
cmp dword [0xd236f8], 1
jne 0x66fa37
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x66fa7b
xor eax, eax
jmp 0x66fae8
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x66fa77
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x66fa7b
xor eax, eax
jmp 0x66fae8
lea edx, [ebp - 0x10c]
push edx
call fcn.0066ce38
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x66fa9c
call fcn.00677580
mov dword [eax], 0x22
xor eax, eax
jmp 0x66fae8
test edi, edi
jne 0x66fabf
mov edx, dword [ebp + 0x10]
push edx
call fcn.0066c62c
pop ecx
mov edi, eax
test eax, eax
jne 0x66fabf
call fcn.00677580
mov dword [eax], 8
xor eax, eax
jmp 0x66fae8
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x673910
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0066cd2c
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0066ce38
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0066ce38
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x82c98d
lea ecx, [ebp - 0x200]
push ecx
call fcn.0066cd2c
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0066ce38
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00674b00
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x673a21
push esi
call fcn.0066ce38
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0066ce38
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0066c62c
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x6739f8
xor eax, eax
jmp 0x673aa8
push esi
call fcn.0066ce38
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0066ce38
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0066cc88
add esp, 0xc
jmp 0x673a61
mov edi, dword [ebx + 0x24]
push edi
call fcn.0066ce38
pop ecx
push eax
push esi
call fcn.0066ce38
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0066ce38
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0066c64c
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x673a61
xor eax, eax
jmp 0x673aa8
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0066cd2c
add esp, 8
push 0x82c98f
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0066cd2c
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0066cd2c
add esp, 8
push 0x82c991
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0066cd2c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x677518
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x67757a
call fcn.006774c8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0066ce38
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0066ce38
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x6775f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x82d078], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x6776d2
cmp dword [0x82d074], 0
jne 0x6776d2
cmp dword [0x82d2a0], 0
je 0x67768c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.006773a8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x677672
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.006773a8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x677672
lea ebx, [ebp - 0x84]
jmp 0x677673
inc ebx
call fcn.006775b4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x67770d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x82d07c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0066ce38
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x82d07f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x67770d
cmp dword [0x82d074], 0
je 0x6776ec
cmp dword [0x82d074], 0xffffffff
je 0x67770d
push esi
call dword [0x82d074]
pop ecx
mov eax, dword [0x82d078]
test eax, eax
je 0x67770d
cmp dword [0x82d078], 0xffffffff
je 0x67770d
cmp byte [eax], 0
je 0x67770d
push esi
push eax
call fcn.00677518
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x67829c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0xd23710], 0
jne 0x67831d
cmp dword [0xd23730], 0
jne 0x6782cc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0xd23730], eax
test eax, eax
jne 0x6782cc
push str.GetEnvironmentStrings_failed
call fcn.00677724
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0xd23730]
jmp 0x6782e0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0066ce38
pop ecx
mov edi, eax
test eax, eax
jne 0x6782d8
lea edi, [ebp + 1]
push edi
call fcn.0066c62c
pop ecx
mov ebx, eax
mov dword [0xd23714], ebx
test ebx, ebx
jne 0x67830a
xor eax, eax
jmp 0x6783e0
push edi
mov edx, dword [0xd23730]
push edx
push ebx
call fcn.0066cc18
add esp, 0xc
jmp 0x67833d
xor esi, esi
mov ebx, dword [0xd23710]
jmp 0x678337
push eax
call fcn.0066ce38
pop ecx
test eax, eax
jne 0x678333
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x678327
lea ebx, [esi + 4]
push 4
mov dword [0xd23718], ebx
inc ebx
push ebx
call fcn.0066bde8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x678360
xor eax, eax
jmp 0x6783e0
cmp dword [0xd23710], 0
jne 0x678391
xor esi, esi
mov ebx, dword [0xd23714]
mov eax, dword [esp]
mov ebp, eax
jmp 0x678382
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0066ce38
pop ecx
mov edi, eax
test eax, eax
jne 0x678378
jmp 0x6783c2
xor esi, esi
mov ebx, dword [0xd23710]
mov eax, dword [esp]
mov edi, eax
jmp 0x6783bc
push eax
call fcn.0066ce38
pop ecx
test eax, eax
je 0x6783b1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x6783b5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x6783a0
mov eax, dword [0xd23710]
test eax, eax
je 0x6783d2
push eax
call fcn.0066c63c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0xd23710], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x678ee4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x678f0a
test esi, esi
je 0x678f0a
call fcn.00677580
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x678f7c
call fcn.00678bf8
mov ebx, eax
test eax, eax
jne 0x678f25
call fcn.00677580
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x678f7c
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x678e40
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x678f70
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x678f69
push 0x59
call fcn.0066ff14
pop ecx
jmp 0x678f7c
call fcn.0066ff80
jmp 0x678f7c
mov dword [ebx + 8], eax
test edi, edi
je 0x678f7c
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0xfef380
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfef38a
pushal
call 0xfef390
pop ebp
sub ebp, 0x10
sub ebp, 0xbef380
jmp 0xfef3a6
mov eax, 0xbef380
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0x58c7aaf
xor byte [eax], dl
inc eax
dec ecx
jne 0xfef3bd
jmp 0xfef3d0
and al, 0x62
and al, 0x26
xchg ebx, eax
scasd eax, dword es:[edi]
scasd eax, dword es:[edi]
scasd eax, dword es:[edi]
outsb dx, byte cs:[esi]
push edi
scasd eax, dword es:[edi]
scasd eax, dword es:[edi]
scasd eax, dword es:[edi]
lodsb al, byte [esi]
bound edx, qword [edi]
test eax, 0x15afafaf
xchg dword [edi + 0x4d58afaf], ebp
lodsb al, byte [esi]
and al, 0x2e
mov dword [0xacafafaf], eax
push 0x22
retf