joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446fe4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4be3b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4c23cc], 0x64
jbe 0x44700b
mov eax, str.SaveLogFile_more_than_100_files_r_n
jmp 0x44713a
push ebx
push esi
push str.SaveLogFile__Start_r_n
call fcn.00447180
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x4c17d8
pop ecx
push esi
call ebx
cmp eax, 0xa
ja 0x447038
push 0x104
push esi
call fcn.0044724c
pop ecx
pop ecx
push esi
call ebx
cmp eax, 0xa
jbe 0x447133
inc word [0x4c23cc]
lea eax, [ebp - 0x1fa]
push edi
mov esi, str..wbt
lea edi, [ebp - 0x204]
push 0x1f6
push 0
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00465e50
push 0x208
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.00465e50
add esp, 0x18
lea eax, [ebp - 0x40c]
mov esi, 0x4c17d8
mov edi, 0x104
push esi
push edi
push eax
call fcn.004275ff
push esi
call ebx
mov esi, eax
lea eax, [ebp - 0x204]
push eax
call ebx
movzx ecx, word [0x4c23cc]
sub esi, eax
lea eax, [ebp - 0x204]
sub edi, esi
push eax
push ecx
push str._d_s
lea eax, [ebp - 0x40c]
lea eax, [eax + esi*2]
push edi
push eax
call fcn.00406984
mov eax, dword [0x4c1f20]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
test eax, eax
je 0x447101
push 0
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
jne 0x447101
call esi
push eax
push str.SaveLogFile_FlushViewOfFile_Failed__lastError___u__r_n
call fcn.00447180
pop ecx
pop ecx
push str.SaveLogFile__FlushViewOfFile_r_n
call fcn.00447180
pop ecx
push 0
lea eax, [ebp - 0x40c]
push eax
push 0x4c17d8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x447133
call esi
push eax
push str.SaveLogFile_save_Failed__lastError___u__r_n
call fcn.00447180
pop ecx
pop ecx
pop esi
mov eax, str.SaveLogFile__End_r_n
pop ebx
push eax
call fcn.00447180
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c567
leave
ret

Function at 0x447180
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4be3b8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.00406bb7
xor eax, eax
add esp, 0x14
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c567
leave
ret
Function at 0x44724c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x4be3b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c1f20], 0
push esi
mov esi, dword [ebp + 8]
je 0x4473df
test esi, esi
je 0x4473df
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x4473de
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4473de
push ebx
push str.GetMappedFileNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4473dd
lea ecx, [edi - 1]
push ecx
push esi
push dword [0x4c1f20]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4473dd
xor eax, eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81c]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4473dd
mov eax, dword [0x49eb98]
lea edi, [ebp - 0x81c]
movzx ecx, word [ebp - 0x81c]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov ax, word [0x49eb9c]
mov word [ebp - 8], ax
mov dword [ebp - 0x820], edi
push 0x104
lea eax, [ebp - 0x214]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4473ba
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, 0x104
jae 0x4473b4
push edi
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.00472c34
add esp, 0xc
test eax, eax
lea eax, [esi + edi*2]
jne 0x447370
cmp word [eax], 0x5c
jne 0x447370
xor ebx, ebx
inc ebx
jmp 0x447372
xor ebx, ebx
test ebx, ebx
je 0x4473b4
push eax
lea eax, [ebp - 0xc]
push eax
push 0x496a80
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00406984
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x105
push esi
call fcn.00429da8
mov edi, dword [ebp - 0x820]
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x4473ba
mov dword [ebp - 0x820], edi
test ebx, ebx
jne 0x4473dd
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x447314
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044c567
leave
ret
Function at 0x44754f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x4475d9
cmp dword [ebp + 0xc], 0
je 0x4475d9
cmp dword [ebp + 0x10], 0
je 0x4475d9
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4475a7
lea eax, [ebp - 4]
push eax
push 0x20119
push ebx
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4475d6
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
leave
ret
push 6
pop eax
leave
ret

Function at 0x447e72
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4be3b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x447fac
cmp dword [0x4c1e18], 2
je 0x447ea8
xor eax, eax
inc eax
jmp 0x447fae
mov ebx, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
push ecx
push ecx
push 0x17
push edi
mov dword [ebp - 0x2c], ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x447fac
push dword [ebp - 0x2c]
call fcn.0046c4c1
mov esi, eax
pop ecx
test esi, esi
je 0x447fac
push dword [ebp - 0x2c]
and dword [ebp - 0x30], 0
push 0
push esi
call fcn.00465e50
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push esi
push 0x17
push edi
call ebx
test eax, eax
je 0x447fa0
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x447fa0
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
push ebx
push 0xa
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x447f9a
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x38], 6
push ebx
push eax
call fcn.00465e50
add esp, 0xc
mov dword [ebp - 0x10], 0x120116
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], 0x14
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
push dword [ebp - 0x34]
neg eax
sbb eax, eax
and dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
call fcn.00468327
mov eax, dword [ebp - 0x30]
pop ecx
jmp 0x447fae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c567
leave
ret
Function at 0x4484d1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4484eb
test al, 0x10
je 0x4484eb
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x448935
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x448975
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x448974
cmp dword [ebp + 0x10], 0
jl 0x448974
push edi
xor edi, edi
test esi, esi
je 0x448973
push ebx
lea ebx, [eax + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x44896b
cmp dword [ebx], 0
je 0x44896b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add ebx, 0xc
cmp edi, esi
jb 0x448958
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x448eaf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
imul edi, dword [ebp + 8], 0xc
mov eax, dword [edi + 0x4c1790]
cmp eax, 0xffffffff
je 0x448ed0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x4c1790], 0xffffffff
mov eax, dword [edi + 0x4c1794]
test eax, eax
je 0x448f1c
cmp dword [ebp + 0xc], 0
je 0x448f0e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [edi + 0x4c1794]
push str.delete_dumpfile___s___ret___d__err___d_r_n
push 2
call fcn.00448f72
mov eax, dword [edi + 0x4c1794]
add esp, 0x14
pop esi
push eax
call fcn.00468327
and dword [edi + 0x4c1794], 0
pop ecx
and dword [edi + 0x4c178c], 0
pop edi
pop ebp
ret

Function at 0x448f72
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4be3b8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.00406bb7
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.004476df
add esp, 0x24
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c567
leave
ret
Function at 0x448fd4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x4be3b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x478], eax
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4491e0
test esi, esi
je 0x4491e0
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00465e50
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044851b
add esp, 0x18
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x45c]
xor ebx, ebx
and dword [ebp - 0x464], ebx
xor esi, esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x460], esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x4491a5
xor edi, edi
mov dword [ebp - 0x46c], edi
mov edx, dword [ebp - 0x464]
cmp esi, edx
jb 0x4490d3
push 8
lea eax, [edx + edx]
test edx, edx
pop ecx
cmovne ecx, eax
mov eax, ecx
mov dword [ebp - 0x464], eax
imul eax, eax, 0xc
push eax
call fcn.0046c4c1
mov dword [ebp - 0x474], eax
pop ecx
test eax, eax
je 0x449184
test ebx, ebx
je 0x4490d1
push edi
push ebx
push edi
push eax
call fcn.00429f63
push ebx
call fcn.00468327
mov eax, dword [ebp - 0x474]
add esp, 0x14
mov ebx, eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + 1]
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x49b61c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
add edi, eax
lea eax, [edi + edi]
push eax
call fcn.0046c4c1
mov esi, eax
pop ecx
test esi, esi
je 0x44917e
push dword [ebp - 0x468]
push edi
push esi
call fcn.0044851b
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [ebp - 0x46c]
mov dword [edi + ebx + 8], esi
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x444]
mov esi, dword [ebp - 0x460]
mov dword [edi + ebx], eax
inc esi
lea eax, [ebp - 0x45c]
mov dword [edi + ebx + 4], ecx
push eax
push dword [ebp - 0x470]
add edi, 0xc
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x46c], edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x449080
jmp 0x449184
mov esi, dword [ebp - 0x460]
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x4491a5
push 0x448660
push 0xc
push esi
push ebx
call fcn.00472d60
add esp, 0x10
mov eax, dword [ebp - 0x478]
test eax, eax
je 0x4491b5
push esi
push ebx
call eax
pop ecx
pop ecx
test esi, esi
je 0x4491d4
lea edi, [ebx + 8]
cmp dword [edi], 0
je 0x4491c9
push dword [edi]
call fcn.00468327
pop ecx
and dword [edi], 0
add edi, 0xc
sub esi, 1
jne 0x4491bc
pop edi
test ebx, ebx
je 0x4491e0
push ebx
call fcn.00468327
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c567
leave
ret
Function at 0x449354
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4be3b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call fcn.00447e72
pop ecx
test eax, eax
jne 0x449451
cmp dword [0x4c1e18], 2
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x4493b4
cmp dword [0x4c1e0c], 6
jb 0x4493b4
push 0x49ec6c
push esi
call ebx
push esi
call fcn.00447e72
pop ecx
test eax, eax
jne 0x449451
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.shell32.dll
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x449454
push edi
push str.SHGetSpecialFolderPathW
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x449440
push edi
push 0x20
push esi
push edi
call eax
test eax, eax
je 0x449440
push esi
call fcn.00447e72
pop ecx
test eax, eax
je 0x449417
inc edi
jmp 0x449440
cmp dword [0x4c1e18], 2
jne 0x449440
cmp dword [0x4c1e0c], 6
jb 0x449440
push 0x49ec6c
push esi
call ebx
push esi
call fcn.00447e72
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
cmovne edi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
jmp 0x449454
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c567
leave
ret

Function at 0x4495d6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
cmp dword [eax + 0x10], 0x10000
je 0x44962a
cmp dword [eax + 0x18], 0x20000
je 0x44962a
mov edi, dword [eax + 4]
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44962a
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x44962a
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44962a
cmp dword [esi], 0x4550
cmove eax, esi
jmp 0x44962c
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x44cd00
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4b9278
call fcn.0044d630
push 1
call fcn.0044c754
pop ecx
test al, al
je 0x44cce8
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0044c722
mov byte [ebp - 0x24], al
mov eax, dword [0x4c2814]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x44cce8
test eax, eax
jne 0x44cc0c
mov dword [0x4c2814], ecx
push 0x493680
push 0x493654
call fcn.00475456
pop ecx
pop ecx
test eax, eax
je 0x44cbef
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x44ccd8
push 0x493650
push 0x493570
call fcn.00475411
pop ecx
pop ecx
mov dword [0x4c2814], 2
jmp 0x44cc11
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0044c8a8
pop ecx
call fcn.0044dd0d
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x44cc42
push esi
call fcn.0044c814
pop ecx
test al, al
je 0x44cc42
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x49356c]
call esi
call fcn.0044dd13
mov esi, eax
cmp dword [esi], edi
je 0x44cc60
push esi
call fcn.0044c814
pop ecx
test al, al
je 0x44cc60
push dword [esi]
call fcn.0047466c
pop ecx
call fcn.0044db22
movzx esi, ax
call fcn.004753c7
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0044db58
test al, al
je 0x44ccef
test bl, bl
jne 0x44cc8e
call fcn.00474647
push edi
push 1
call fcn.0044c8c5
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x44ccd8
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0044da08
push esi
call fcn.00474692
push dword [ebp - 0x20]
call fcn.00474656
int3
call fcn.0041bbd5
jmp 0x44cb82

Function at 0x44f8e7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x47b03c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047aeb2

Function at 0x4813ff
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480f52
Function at 0x408320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call fcn.004017a0
mov eax, dword [0x40c044]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x25], 0x6c774465
mov dword [ebp - 0x21], 0x756f6373
mov dword [ebp - 0x1d], 0x594c5959
mov dword [ebp - 0x19], 0x7849424c
mov dword [ebp - 0x15], 0x6e6b6b68
mov dword [ebp - 0x11], 0x6c6c642e
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x25]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4083ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_load_DLL._Error_code:__d_n
call fcn.00408434
mov eax, 1
jmp 0x40841a
mov dword [esp + 4], str.TwMTnVuZZIyXYvGABchT
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x408400
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_function_address._Error_code:__d_n
call fcn.00408434
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 1
jmp 0x40841a
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [0x40c044]
je 0x40842a
call fcn.004016b0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0xd2c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd2c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd2c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd2c06a
add dl, dl
jne 0xd2c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd2c0dc
xor eax, eax
add dl, dl
jne 0xd2c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd2c17d
add dl, dl
jne 0xd2c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd2c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd2c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd2c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd2c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd2c075
mov eax, 1
add dl, dl
jne 0xd2c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd2c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd2c0e1
sub eax, ebx
mov ebx, 1
jne 0xd2c128
mov ecx, 1
add dl, dl
jne 0xd2c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd2c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd2c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd2c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd2c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd2c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd2c136
cmp eax, 0x7d00
jae 0xd2c16d
cmp eax, 0x500
jb 0xd2c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd2c075
cmp eax, 0x7f
ja 0xd2c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd2c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd2c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd2c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40319c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040489c
test esi, esi
jne 0x4031d3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040498c
jmp 0x4031f4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403038
mov dword [esp], eax
test esi, esi
je 0x4031f4
cmp dword [ebx], 0
je 0x4031f4
dec esi
jmp 0x4031db
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4038d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403968
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403948
xor eax, eax
push ebp
push 0x403941
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403984
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403948
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x487024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404694
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e048], 0
je 0x4046f5
cmp word [0x48e21c], 0xd7b2
jne 0x4046bd
cmp dword [0x48e224], 0
jbe 0x4046bd
mov eax, 0x48e218
call dword [0x48e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x487070
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 0x40471c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x487034], 0
jne 0x404711
push 0
push 0x487068
push 0x487070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402d70
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48e049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404818
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc