joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40315c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], 2
mov byte [ebp - 8], 0x3b
mov byte [ebp - 7], 0
push str.CLASSPATH
call dword [sym.imp.MSVCRTD.dll_getenv]
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4031cd
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
add eax, 0x28
push eax
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
push ecx
push str._Denv.class.path_s
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401d8e
add esp, 8
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.0040414a
add esp, 8
and eax, 0xff
test eax, eax
jne 0x403200
push 1
push str.Cant_determine_application_home
call fcn.004044bb
add esp, 8
xor al, al
jmp 0x40333f
lea edx, [ebp - 0x124]
push edx
call sub.MSVCRTD.dll_strlen
add esp, 4
add eax, 0x28
push eax
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x124]
push eax
push str._Dapplication.home_s
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00401d8e
add esp, 8
mov dword [ebp - 4], 0x28
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jmp 0x403270
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x128]
jge 0x40329f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax*4 + 0x40c014]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 1]
mov dword [ebp - 4], ecx
jmp 0x403267
mov edx, dword [ebp - 4]
add edx, 1
push edx
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x10], eax
push str._Djava.class.path
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
mov dword [ebp - 0x1c], 0
jmp 0x4032d4
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x128]
jge 0x40331b
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strcat
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx*4 + 0x40c014]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strcat
add esp, 8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
jmp 0x4032cb
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x10]
mov byte [edx + eax - 1], 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401d8e
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x403627
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push 0x104
lea eax, [ebp - 0x184]
push eax
call fcn.00404108
add esp, 8
push 0x40d0dc
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.MSVCRTD.dll_fopen]
add esp, 8
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40368d
lea edx, [ebp - 0x184]
push edx
push str.Cant_open__s_n
mov eax, dword [sym.imp.MSVCRTD.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRTD.dll_fprintf]
add esp, 0xc
mov eax, 1
jmp 0x4036ea
mov ecx, dword [ebp - 0x188]
push ecx
push 0x80
push 1
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCRTD.dll_fread]
add esp, 0x10
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x4036d8
mov eax, dword [sym.imp.MSVCRTD.dll__iob]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
push 1
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCRTD.dll_fwrite]
add esp, 0x10
jmp 0x40368d
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.MSVCRTD.dll_fclose]
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403dda
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403ef5
add esp, 8
and eax, 0xff
test eax, eax
jne 0x403e11
push 1
push str.Error:_could_not_find_Java_2_Runtime_Environment.
call fcn.004044bb
add esp, 8
push 2
call dword [sym.imp.MSVCRTD.dll_exit]
push 0
call fcn.00403dd0
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.004036ee
add esp, 0xc
cmp eax, 1
jge 0x403e41
push 1
push str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
call fcn.004044bb
add esp, 8
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004019d9
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00403fe9
add esp, 0x10
and eax, 0xff
test eax, eax
jne 0x403ef0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.Error:_no___s_JVM_at___s.
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRTD.dll_strlen
add esp, 4
add esi, eax
mov eax, dword [ebp + 0x18]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
add esi, eax
push esi
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0x10
push 1
mov edx, dword [ebp - 0xc]
push edx
call fcn.004044bb
add esp, 8
push 4
call dword [sym.imp.MSVCRTD.dll_exit]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4045f2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404692
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.00405837
add esp, 8
test eax, eax
je 0x40468d
cmp dword [ebp - 4], 0
je 0x404667
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.004056d8
add esp, 8
test eax, eax
jle 0x40468d
cmp dword [ebp - 4], 0
je 0x40467a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRTD.dll__strdup]
add esp, 4
mov dword [ebp - 4], eax
jmp 0x404609
cmp dword [ebp - 4], 0
jne 0x40469f
xor eax, eax
jmp 0x404747
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4046dd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4046d9
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404747
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
mov dword [ebp - 8], 0x104
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.JavaHome
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404727
cmp dword [ebp - 0xc], 0
je 0x404723
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404747
cmp dword [ebp - 0xc], 0
je 0x404737
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRTD.dll__strdup]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40474b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404783
push 1
push str.Unable_to_resolve_path_to_current_executable
call fcn.004044bb
add esp, 8
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRTD.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4047ad
jmp 0x404885
mov dword [ebp - 0x108], str.java
mov ecx, dword [ebp - 0x108]
push ecx
push str._bin_
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x108]
mov dword [ecx], edx
xor eax, eax
mov al, byte [0x40f0b2]
test eax, eax
je 0x404868
lea ecx, [ebp - 0x104]
push ecx
push str.execv___s_
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 8
mov dword [ebp - 0x10c], 0
jmp 0x40482e
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + eax*4], 0
je 0x40485a
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push str.____s_
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 8
jmp 0x40481f
push 0x40d794
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.MSVCRTD.dll__spawnv]
add esp, 0xc
push eax
call dword [sym.imp.MSVCRTD.dll_exit]
mov esp, ebp
pop ebp
ret
Function at 0x404ab7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x404ace
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xffffffff
jne 0x404ad5
xor eax, eax
jmp 0x404c74
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRTD.dll__lseek]
add esp, 0xc
test eax, eax
jge 0x404af6
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add eax, 1
push eax
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x404b19
xor eax, eax
jmp 0x404c74
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRTD.dll__read]
add esp, 0xc
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 4]
je 0x404b4d
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
jne 0x404b6b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x40]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x40]
jmp 0x404c74
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0xc], 8
jne 0x404c72
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x34], edx
push 0x38
push 0x40d800
push 0xfffffffffffffff1
lea eax, [ebp - 0x38]
push eax
call fcn.00405d36
add esp, 0x10
test eax, eax
jge 0x404bc9
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x404bf5
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
push 1
lea edx, [ebp - 0x38]
push edx
call fcn.00405eda
add esp, 8
test eax, eax
jge 0x404c33
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
lea eax, [ebp - 0x38]
push eax
call fcn.00405cac
add esp, 4
test eax, eax
jge 0x404c6d
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov eax, dword [ebp - 0x3c]
jmp 0x404c74
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40a72a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x40f08c
mov ecx, dword [sym.imp.MSVCRTD.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRTD.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
pop ebp
ret
Function at 0x7813480f
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ebx, ebx
push ebx
push ebx
mov ebp, str.__MSVCRT_HEAP_SELECT
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x78134961
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x7813495f
push esi
push ebx
push ebp
call edi
test eax, eax
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
jbe 0x78134953
cmp eax, esi
ja 0x78134953
cmp byte [ebx], 0
mov ecx, ebx
je 0x78134889
mov al, byte [ecx]
cmp al, 0x61
jl 0x78134883
cmp al, 0x7a
jg 0x78134883
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78134875
push 0x16
push ebx
push str.__GLOBAL_HEAP_SELECTED
call fcn.7813ad73
add esp, 0xc
test eax, eax
jne 0x781348a1
mov edi, ebx
jmp 0x781348fc
push 0x105
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x78134953
push 3
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x781348e5
mov al, byte [ecx]
cmp al, 0x61
jl 0x781348df
cmp al, 0x7a
jg 0x781348df
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x781348d1
push esi
push ebx
call sym.MSVCR80.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
test edi, edi
je 0x78134953
push 0x2c
push edi
call sym.MSVCR80.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x78134953
inc eax
cmp byte [eax], 0x20
je 0x7813490e
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x78134953
cmp cl, 0x39
jg 0x78134934
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x7813491d
cmp esi, 2
je 0x78134943
cmp esi, 3
je 0x78134943
cmp esi, 1
jne 0x78134953
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov eax, esi
jmp 0x781349c1
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
je 0x7813497d
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78134999
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [esp + 0x10], 2
jne 0x781349ac
cmp dword [esp + 0x14], 5
jb 0x781349ac
xor eax, eax
inc eax
jmp 0x781349c1
lea eax, [esp + 0x18]
push eax
call fcn.781347e2
cmp byte [esp + 0x1c], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x78138894
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.MSVCR80.dll__invalid_parameter

Function at 0x78139847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x781c19c8]
jne 0x78139851
repz ret
jmp sym.MSVCR80.dll___report_gsfailure
Function at 0x7815472c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154759
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7813ad73
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78154735
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154788
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x781547af
test al, 1
je 0x781547af
test byte [esp + 0xc], 2
je 0x781547af
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x7815477f
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154a7e
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7813ad73
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154a9c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78154a79
test byte [esp + 0xc], 0x80
je 0x78154aa8
and eax, 0xfffffffe
jmp 0x78154aab
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78154a8d
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155cca
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7813ad73
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78155ca6
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155cf9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x78155d20
test al, 1
je 0x78155d20
test byte [esp + 0xc], 2
je 0x78155d20
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x78155cf0
xor eax, eax
pop esi
ret
Function at 0x78155e6a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155e97
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7813ad73
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155eb5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78155e92
test byte [esp + 0xc], 0x80
je 0x78155ec1
and eax, 0xfffffffe
jmp 0x78155ec4
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78155ea6
xor eax, eax
pop esi
ret
Function at 0x10005e45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10005e54
pop dword [ebp - 0x40]
mov eax, 0x4798ce28
sub eax, 0x37986fd4
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x1d82b515
sub dword [ebp - 0x50], 0xcf306fca
mov dword [ebp - 0x4c], 0xe3365081
add dword [ebp - 0x4c], 0x4efcfbc4
mov dword [ebp - 0x48], 0xbee5cf57
sub dword [ebp - 0x48], 0x72998b29
mov dword [ebp - 0x44], 0xc0334543
add dword [ebp - 0x44], 0x3fccbabd
lea eax, [ebp - 0x50]
push eax
mov eax, 0xd2fc6e9e
add eax, 0x3d059166
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x1ca5904
sub dword [ebp - 0x50], 0x8d57efae
mov dword [ebp - 0x4c], 0x45f7b5e2
sub dword [ebp - 0x4c], 0x48b546d
mov dword [ebp - 0x48], 0x595748ad
sub dword [ebp - 0x48], 0xf5e7dc41
mov dword [ebp - 0x44], 0x5d8275ae
sub dword [ebp - 0x44], 0x5d8275ae
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x681b12e7
add eax, 0xa7e6ed19
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3d11e
push 0
call eax
mov ecx, 0x4943
xor edx, edx
add edx, eax
mov ebx, 0xbb3f45af
add ebx, 0x54c37651
add ebx, dword [ebp - 0x40]
mov edi, 0x1f5b037a
sub edi, 0xa9d27d0
sub dword [ebp - 0x14], 0x3e764a71
mov esi, dword [ebx]
xor dword [ebp - 0x1c], edi
sub esi, edi
mov dword [edx], esi
sub dword [ebp - 0x28], 0x2e8b7abe
add edx, 0x948d202a
add edx, 0x6b72dfda
add ebx, 0xf75b0736
add ebx, 0x8a4f8ce
loop 0x10005f72
add eax, 0x117df
mov ebx, eax
add eax, 0xfe16f5ed
sub eax, 0xfe16f5e8
mov ecx, 0x4c02e69
sub ecx, 0xf4c02e69
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x407550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40755f
pop dword [ebp - 8]
mov eax, 0x40755f
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x39a32
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x47d6
mov edx, eax
mov ebx, 0x5aefc8c8
sub ebx, 0x5aae50c8
add ebx, dword [ebp - 8]
mov esi, 0x124ad42e
sub esi, 0xd05045bf
add dword [ebp - 4], 0x154e1ba5
mov edi, dword [ebx]
add dword [ebp - 4], 0x6ce69d6b
xor edi, esi
xor dword [ebp - 4], ebx
mov dword [edx], edi
add dword [ebp - 4], ebx
add edx, 0xc342c31f
sub edx, 0xc342c31b
add ebx, 4
loop 0x4075ae
add eax, 0x1122b
xor ebx, ebx
add ebx, eax
add eax, 0x8d6d7d05
add eax, 0x72928300
mov ecx, 0x933e6477
sub ecx, 0x92fe6477
add ecx, dword [ebp - 8]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, reloc.kernel32.dll_GetTempPathW
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219