joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a004]
jne 0x412e12
repz ret
jmp fcn.00415dec

Function at 0x41dc28
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 0x41dc4f
call fcn.004160e1
mov dword [eax], esi
call fcn.004160ce
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041607c
mov eax, esi
jmp 0x41dca4
test dword [ebp + 0xc], 0xfffffff9
jne 0x41dc35
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41dc7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004160f4
pop ecx
call fcn.004160ce
mov eax, dword [eax]
jmp 0x41dca4
test al, 0x10
jne 0x41dca2
test al, 1
je 0x41dca2
test byte [ebp + 0xc], 2
je 0x41dca2
call fcn.004160e1
mov dword [eax], 5
call fcn.004160ce
mov dword [eax], 0xd
jmp 0x41dc73
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4206e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041a8a8
and dword [ebp - 0x14], 0
cmp dword [0x42be4c], 0
mov dword [ebp - 0x18], eax
jne 0x420798
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x420840
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x420840
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42be4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42be50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42be54], eax
call edi
push eax
call esi
mov dword [0x42be5c], eax
test eax, eax
je 0x420798
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42be58], eax
mov eax, dword [0x42be58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4207f1
cmp dword [0x42be5c], ecx
je 0x4207f1
push eax
call esi
push dword [0x42be5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4207f1
test ebx, ebx
je 0x4207f1
call edi
test eax, eax
je 0x4207e8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4207e8
test byte [ebp - 8], 1
jne 0x4207f1
or dword [ebp + 0x10], 0x200000
jmp 0x420824
mov eax, dword [0x42be50]
cmp eax, dword [ebp - 0x18]
je 0x420824
push eax
call esi
test eax, eax
je 0x420824
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x420824
mov eax, dword [0x42be54]
cmp eax, dword [ebp - 0x18]
je 0x420824
push eax
call esi
test eax, eax
je 0x420824
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42be4c]
call esi
test eax, eax
je 0x420840
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420842
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e08
leave
ret
Function at 0x407d9c
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 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
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 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
sub eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
sub ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
push ecx
pop eax
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
or esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x402f9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fb9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402fcb
mov dword [ebp - 0xc], 0x419428
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe0
mov ecx, dword [0x42f478]
add ecx, eax
push ecx
call fcn.004031c4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004031ae
test eax, eax
je 0x40319c
test byte [ebp + 0x17], 0x80
je 0x403147
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40bd8c], 0
and dword [0x40bd88], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40d410
mov dword [0x40b870], 8
mov dword [0x415418], eax
mov dword [0x415414], eax
mov eax, dword [ebp + 0x14]
mov dword [0x415410], 0x415410
mov dword [ebp + 8], eax
jle 0x4031a4
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403059
mov esi, dword [ebp + 0x14]
mov edi, 0x415428
push esi
push edi
call fcn.004031ae
test eax, eax
je 0x40319c
sub dword [ebp + 0x14], esi
mov dword [0x40b860], edi
mov dword [0x40b864], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b860
mov dword [0x40b868], edi
mov dword [0x40b86c], eax
call fcn.0040645d
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40313f
mov esi, dword [0x40b868]
sub esi, edi
call ebx
test byte [0x42f4d4], 1
mov edi, eax
je 0x4030fa
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4030c7
cmp dword [ebp + 0x14], 0
jne 0x4030fa
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004050c7
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403133
cmp dword [ebp + 0x10], 0
jne 0x403119
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405be0
test eax, eax
je 0x403143
add dword [ebp - 4], esi
jmp 0x403127
mov eax, dword [0x40b868]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x40307c
jmp 0x4031a4
cmp dword [ebp + 0x14], 0
jg 0x40304c
jmp 0x4031a4
push 0xfffffffffffffffc
jmp 0x40319e
push 0xfffffffffffffffe
jmp 0x40319e
test edi, edi
jne 0x403189
cmp dword [ebp + 0x14], edi
jle 0x4031a4
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40315d
mov esi, ebx
mov edi, 0x415428
push esi
push edi
call fcn.004031ae
test eax, eax
je 0x40319c
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405be0
test eax, eax
je 0x403143
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403153
jmp 0x4031a4
cmp dword [ebp + 0x14], esi
jge 0x403191
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004031ae
test eax, eax
jne 0x4031a1
push 0xfffffffffffffffd
pop eax
jmp 0x4031a7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40558d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40837c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40836c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4055de
xor eax, eax
jmp 0x405605
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405605
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4055da
call esi
pop esi
leave
ret 4

Function at 0x40563f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c078], 0x44
push eax
xor eax, eax
push 0x42c078
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40567e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405682
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405720
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b14
mov edi, eax
cmp edi, 0xffffffff
je 0x405761
test byte [esp + 0x10], 1
push esi
je 0x405743
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405749
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405752
xor eax, eax
inc eax
jmp 0x405763
test byte [esp + 0x10], 4
jne 0x405761
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405768
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a26
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4057a7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4a8], eax
jmp 0x405931
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4057c1
test eax, eax
je 0x4058df
test bl, 2
je 0x4058df
mov esi, 0x42b878
push edi
push esi
call fcn.00405fa0
cmp dword [ebp + 8], 0
je 0x4057e0
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057e6
push edi
call fcn.0040597f
cmp byte [edi], 0
jne 0x4057f4
cmp byte [0x42b878], 0x5c
jne 0x4057ff
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4058d5
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405963
cmp byte [eax], 0
je 0x405845
cmp byte [ebp - 0x1c], 0
je 0x405845
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40585b
mov al, byte [esi + 1]
test al, al
je 0x4058b4
cmp al, 0x2e
jne 0x40585b
cmp byte [esi + 2], 0
je 0x4058b4
push esi
push ebx
call fcn.00405fa0
test byte [ebp - 0x14c], 0x10
je 0x405880
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4058b4
push dword [ebp + 0xc]
push edi
call fcn.00405768
jmp 0x4058b4
push dword [ebp - 4]
push edi
call fcn.00405720
test eax, eax
jne 0x4058ac
cmp dword [ebp - 4], eax
je 0x4058a4
push edi
push 0xfffffffffffffff1
call fcn.004050c7
push 0
push edi
call fcn.00405d7f
jmp 0x4058b4
inc dword [0x42f4a8]
jmp 0x4058b4
push edi
push 0xfffffffffffffff2
call fcn.004050c7
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405823
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058df
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405931
cmp dword [ebp - 0xc], esi
jne 0x4058f3
inc dword [0x42f4a8]
jmp 0x405931
push edi
call fcn.004062a3
test eax, eax
je 0x405931
push edi
call fcn.00405938
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405720
test eax, eax
jne 0x405929
cmp dword [ebp - 4], esi
je 0x4058eb
push edi
push 0xfffffffffffffff1
call fcn.004050c7
push esi
push edi
call fcn.00405d7f
jmp 0x405931
push edi
push 0xffffffffffffffe5
call fcn.004050c7
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a26
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bc78
push esi
call fcn.00405fa0
push esi
call fcn.004059d1
mov edi, eax
test edi, edi
jne 0x405a47
xor eax, eax
jmp 0x405a99
push edi
call fcn.0040620a
test byte [0x42f41c], 0x80
je 0x405a60
mov al, byte [edi]
test al, al
je 0x405a43
cmp al, 0x5c
je 0x405a43
sub edi, esi
jmp 0x405a78
call fcn.004062a3
test eax, eax
je 0x405a72
test byte [eax], 0x10
je 0x405a43
push esi
call fcn.0040597f
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a64
call fcn.00405938
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b33
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405b39
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x405b68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3b4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405bad
test edi, edi
jne 0x405b73
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405ba7
Function at 0x405c0f
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x42c600], 0x4c554e
mov edi, 0x400
mov ebp, 0x42c600
je 0x405c5b
push 1
push 0
push esi
call fcn.00405b39
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d7a
cmp eax, edi
jg 0x405d7a
mov esi, 0x42ca00
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d7a
cmp eax, edi
jg 0x405d7a
push esi
push ebp
push str._s_s_r_n
push 0x42c200
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42f414]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405fc2
push 4
push 0xc0000000
push esi
call fcn.00405b39
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405d7a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405d73
push edi
push esi
push ebp
call fcn.00405bb1
test eax, eax
je 0x405d73
push str._Rename__r_n
push esi
call fcn.00405a9e
test eax, eax
jne 0x405d11
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d46
add eax, 0xa
push 0x40a3b8
push eax
call fcn.00405a9e
mov ebp, eax
test ebp, ebp
je 0x405d42
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d33
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d2d
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d48
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42c200
push eax
call fcn.00405af4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405be0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405d7f
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405da2
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405c0f
pop ecx
pop ecx
inc dword [0x42f4b0]
ret 8

Function at 0x405e87
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405e26
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405ef6
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405ef6
cmp dword [ebp + 0xc], 1
je 0x405ef9
cmp dword [ebp + 0xc], 2
je 0x405ef9
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4062ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062ee
xor eax, eax
test eax, eax
je 0x406300
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406300
xor ecx, ecx
jmp 0x406303
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4063ef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce04], 0
push esi
jne 0x406426
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406400
mov dword [ecx*4 + 0x42ce00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406457
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce00]
xor eax, esi
inc ecx
dec edx
jne 0x406439
pop edi
not eax
pop esi
ret 0xc
Function at 0x401b30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401b7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b74
test esi, esi
je 0x401b74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b50
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d60
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e84
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401dee
cmp eax, 4
jne 0x401e10
test esi, esi
je 0x401e02
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401df4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e4f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e41
cmp ecx, 0x40
je 0x401e02
cmp ecx, 4
je 0x401e02
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d60
lea esi, [esi]
Function at 0x416213
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00416292
jae 0x41621f
xor ecx, ecx
call fcn.00416292
jae 0x416249
xor eax, eax
call fcn.00416292
jae 0x41625a
mov al, 0x10
call fcn.00416292
adc al, al
jae 0x41623b
jne 0x416287
stosb byte es:[edi], al
jmp 0x416220
call fcn.0041629e
dec ecx
loop 0x416266
mov eax, ebp
call fcn.0041629c
jmp 0x416288
lodsb al, byte [esi]
shr eax, 1
je 0x4162ae
adc ecx, 2
mov ebp, eax
jmp 0x416288
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0041629c
cmp eax, 0x7d00
jae 0x416286
cmp eax, 0x500
jae 0x416287
cmp eax, 0x7f
ja 0x416288
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416220
pop ebp
ret 8