joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78aefc51
Capabilities:
Allocate thread local storage

Disassembly:
push 0x14
mov eax, 0x78b4edae
call fcn.78abb046
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [edi + 4]
mov dword [edi], 0x78ae3d34
call sym.MSVCR100.dll_memcmp
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
lea esi, [edi + 0x40]
call fcn.78af1d1a
push dword [0x78b5636c]
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
lea eax, [edi + 0x90]
push eax
call esi
push dword [0x78b5636c]
lea eax, [edi + 0xa8]
mov dword [eax], ebx
mov dword [eax + 4], eax
mov dword [eax + 8], ebx
or dword [edi + 0xc8], 0xffffffff
mov dword [edi + 0xb4], 0xffffffff
mov dword [edi + 0xb8], 0xffffffff
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd4], ebx
mov dword [edi + 0xd8], ebx
mov dword [edi + 0xdc], 1
mov dword [edi + 0xe0], ebx
mov dword [edi + 0xe4], ebx
mov dword [edi + 0xe8], ebx
mov dword [edi + 0xec], ebx
mov dword [edi + 0xf0], ebx
mov dword [edi + 0xf8], ebx
lea eax, [edi + 0x114]
mov dword [edi + 0x100], ebx
push eax
mov dword [edi + 0x104], ebx
mov dword [edi + 0x108], ebx
mov dword [edi + 0x10c], ebx
call esi
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.kernel32.dll_InitializeSListHead]
lea eax, [edi + 0x140]
mov dword [edi + 0x12c], ebx
push eax
mov dword [edi + 0x130], ebx
mov dword [edi + 0x134], ebx
call esi
lea eax, [edi + 0x148]
push eax
call esi
lea eax, [edi + 0x150]
push eax
call esi
mov ecx, dword [ebp + 0xc]
push ebx
call sym.MSVCR100.dll_memcmp
mov ecx, dword [ebp + 0xc]
push 4
mov dword [edi + 8], eax
call sym.MSVCR100.dll_memcmp
mov ecx, dword [ebp + 0xc]
push 7
mov word [edi + 0x10], ax
call sym.MSVCR100.dll_memcmp
mov dword [edi + 0xc], eax
call fcn.78aeb834
mov ecx, dword [ebp + 0xc]
mov esi, eax
push 2
call sym.MSVCR100.dll_memcmp
mov ecx, esi
shl ecx, 2
cmp ecx, eax
jbe 0x78aefdc7
call fcn.78aeb834
shl eax, 2
jmp 0x78aefdd1
mov ecx, dword [ebp + 0xc]
push 2
call sym.MSVCR100.dll_memcmp
mov dword [edi + 0x110], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x78aefe10
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x78aefdf9
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x20]
call sym.MSVCR100.dll_memcmp
push 0x78b4feb4
lea eax, [ebp - 0x20]
push eax
call sym.MSVCR100.dll_memcmp
mov eax, edi
call fcn.78abb658
ret 8
Function at 0x78af276d
Capabilities:
Get thread local storage value

Disassembly:
push 0
mov eax, 0x78b4f9fc
call fcn.78abb046
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x78af2828
mov ecx, eax
and ecx, 3
jne 0x78af279c
mov esi, eax
push eax
jmp 0x78af27b8
cmp ecx, 1
jne 0x78af27bf
and eax, 0xfffffffe
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 0x20]
add esi, 4
test eax, eax
je 0x78af27b7
cmp byte [eax + 0x40], 0
jne 0x78af2828
push esi
call fcn.78ae880c
jmp 0x78af27f2
and eax, 0xfffffffd
mov esi, eax
lea edi, [esi + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
add esi, 0xc
test eax, eax
je 0x78af27e5
cmp byte [eax + 0x40], 0
je 0x78af27e5
xor esi, esi
jmp 0x78af27eb
push esi
call fcn.78ae880c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test esi, esi
je 0x78af2828
cmp dword [esi + 0x14], ebx
je 0x78af2824
push 0x3c
call sym.MSVCR100.dll_memcmp
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x78af2818
push esi
push ebx
call sym.MSVCR100.dll_memcmp
or dword [ebp - 4], 0xffffffff
push eax
mov esi, eax
call fcn.78ae880c
mov eax, esi
jmp 0x78af282a
xor eax, eax
call fcn.78abb658
ret 4

Function at 0x78af7403
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push 0x78af7494
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78af7490
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x78af74b0
push ebx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74c4
xor ecx, eax
push ebx
mov dword [edi], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74dc
xor ecx, eax
push ebx
mov dword [edi + 4], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74e8
xor ecx, eax
push ebx
mov dword [edi + 8], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af7500
xor ecx, eax
push ebx
mov dword [edi + 0xc], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af7514
xor ecx, eax
push ebx
mov dword [edi + 0x10], ecx
call esi
mov ecx, dword [0x78b54630]
xor ecx, eax
mov dword [edi + 0x14], ecx
pop esi
mov eax, edi
pop ebx
ret
Function at 0x78afa890
Capabilities:
Get thread local storage value
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80c], edi
call fcn.78af035a
push dword [0x78b579bc]
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x78afa8e0
call dword [sym.imp.kernel32.dll_DebugBreak]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab07a7
leave
ret
test esi, esi
je 0x78afa93d
cmp dword [esi + 0x1c], 0
je 0x78afa93d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x78afa8f6
mov edi, dword [eax + 0x6c]
jmp 0x78afa8f9
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp - 0x80c]
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
push 0x78afa9a8
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll_memcmp
add esp, 0x2c
jmp 0x78afa962
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push 0x78afaa10
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll_memcmp
add esp, 0x1c
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x808]
push eax
push dword [0x78b54634]
call sym.MSVCR100.dll_fwprintf
push dword [0x78b54634]
call sym.MSVCR100.dll_fflush
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
call dword [sym.imp.kernel32.dll_DebugBreak]
push 0xfffffffffffffff8
call sym.MSVCR100.dll_memcmp
int3

Function at 0x78afaac5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b57a50]
test dword [ebp + 8], eax
je 0x78afab5a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call sym.MSVCR100.dll_memcmp
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x78b54634]
add esp, 0xc
test eax, eax
je 0x78afab4d
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b57a5c]
push dword [0x78b57a58]
call fcn.78ac8690
add dword [0x78b57a58], 1
adc dword [0x78b57a5c], 0
or eax, edx
jne 0x78afab5a
push dword [0x78b54634]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afab5a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab07a7
leave
ret
Function at 0x78afea37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78afea5e
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78afeab3
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afea44
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afea8b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcmp
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afeab3
test al, 0x10
jne 0x78afeab1
test al, 1
je 0x78afeab1
test byte [ebp + 0xc], 2
je 0x78afeab1
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afea82
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afeaf6
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afeb13
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcmp
pop ecx
jmp 0x78afeaf1
test byte [ebp + 0xc], 0x80
je 0x78afeb1e
and eax, 0xfffffffe
jmp 0x78afeb21
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78afeb04
xor eax, eax
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b004b7
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b004d4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcmp
pop ecx
jmp 0x78b004b2
test byte [ebp + 0xc], 0x80
je 0x78b004df
and eax, 0xfffffffe
jmp 0x78b004e2
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b004c5
xor eax, eax
pop ebp
ret
Function at 0x41ddf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41a015
lea edi, [esi - 0x19015]
push edi
jmp 0x41de0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41de11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41de00
mov eax, 1
add ebx, ebx
jne 0x41de23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41de34
jne 0x41de53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41de53
dec eax
add ebx, ebx
jne 0x41de40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x41de18
add ebx, ebx
jne 0x41de4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x41dea5
xor ecx, ecx
sub eax, 3
jb 0x41de6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41deda
sar eax, 1
mov ebp, eax
jmp 0x41de76
add ebx, ebx
jne 0x41de76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41de44
inc ecx
add ebx, ebx
jne 0x41de84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41de44
add ebx, ebx
jne 0x41de91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41de86
jne 0x41dea2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41de86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41dec4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41deb6
jmp 0x41de06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41dec4
add edi, ecx
jmp 0x41de06
pop esi
mov edi, esi
mov ecx, 0x273
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41dee2
cmp byte [edi], 5
jne 0x41dee2
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 0x41dee7
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41df56
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x229cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22a4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41df14
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22a54]
or eax, eax
je 0x41df50
mov dword [ebx], eax
add ebx, 4
jmp 0x41df31
call dword [esi + 0x22a50]
mov ebp, dword [esi + 0x22a58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1dfb1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41dfa2
sub esp, 0xffffff80
jmp 0x401590
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x402e96
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x402ef4
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402ef4
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x402ef4
cmp dword [edx + ecx], 0x4550
jne 0x402ef4
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x402edf
mov edi, 0x8664
cmp ax, di
je 0x402ef4
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x402ef4
add ecx, 0xc
cmp esi, ecx
jae 0x402ef6
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x405a12
pop dword [ebp - 0x3c]
mov eax, 0x405a12
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc56eb4bb
sub dword [ebp - 0x4c], 0x771c6f70
mov dword [ebp - 0x48], 0xa43738b3
add dword [ebp - 0x48], 0x8dfc1392
mov dword [ebp - 0x44], 0xffafb556
sub dword [ebp - 0x44], 0xb3637128
mov dword [ebp - 0x40], 0x5e435e0f
add dword [ebp - 0x40], 0xa1bca1f1
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x7b770ead
add eax, 0x84c97257
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x1529591f
add dword [ebp - 0x4c], 0x5f491037
mov dword [ebp - 0x48], 0xfc572924
add dword [ebp - 0x48], 0x45153851
mov dword [ebp - 0x44], 0xba3d832b
add dword [ebp - 0x44], 0xa931e941
mov dword [ebp - 0x40], 0x275cf810
sub dword [ebp - 0x40], 0x275cf810
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xb3e413d1
add eax, 0x4c5c6d2f
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b958
push 0
call eax
mov ecx, 0x773f5283
add ecx, 0x88c107e7
xor ebx, ebx
add ebx, eax
mov edx, 0x46e400
add edx, dword [ebp - 0x3c]
mov edi, 0x621d4c69
add edi, 0xe55a5d3b
sub dword [ebp - 0x28], esi
mov esi, dword [edx]
xor dword [ebp - 0xc], 0x1bb19469
add esi, edi
xor dword [ebp - 0x20], 0xb2dcd14b
mov dword [ebx], esi
add ebx, 0x211564f0
sub ebx, 0x211564ec
add edx, 0x6754f38
add edx, 0xf98ab0cc
loop 0x405b2b
add eax, 0x76cea67
add eax, 0xf8947214
mov ebx, eax
add eax, 0x6808937f
sub eax, 0x6808937a
mov ecx, 0x8d500d85
sub ecx, 0x8d100d85
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402f18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x402f79
cmp word [0x40a208], 0xd7b2
jne 0x402f41
cmp dword [0x40a210], 0
jbe 0x402f41
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
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 0x402fa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409024], 0
jne 0x402f95
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403ada
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x403b15
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x403afc
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x403b0d
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x403b17
inc edi
add eax, 0x28
cmp edi, esi
jb 0x403af2
xor eax, eax
pop edi
pop esi
ret
Function at 0x403c88
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
adc cl, byte [ebx - 0x24ccefbb]
cmp eax, ebx
je 0x404293
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.00403a9a
add al, 0x5a
wait
dec eax
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.00403a9a
xchg byte [esp + eax + 0x478b6680], al
push es
cmp ax, bx
jbe 0x403cf4
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x403cee
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x403cdf
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00403a9a
mov byte [0x8d17fca7], al
inc ebp
test al, 0x50
call fcn.00403aaa
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00403a5f
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x403d88
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403a9a
bound esi, qword [edi + 0x458d1b36]
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x403ec8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fsub dword [edi - 0x3a]
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x403f35
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403aaa
push eax
push esi
push dword [ebp + 8]
call fcn.00403a5f
add esp, 0x30
mov dword [ebp - 0xb8], eax
invalid

Function at 0x404090
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je fcn.004040d0