joyce8/EMBER2024-capa huggingface dataset:
Function at 0x200019ad
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
push 0
push str..htm
push 0x80000000
call ebx
test eax, eax
jne 0x20001b1d
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 8], 0x208
call esi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x20001b1d
lea eax, [ebp - 0x214]
push str._shellopencommand
push eax
call fcn.20003280
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
push 0x20019
lea eax, [ebp - 0x214]
push 0
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x20001b1d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call edi
test esi, esi
jne 0x20001b1d
xor edi, edi
mov al, byte [ebp + edi - 0x214]
cmp al, 0x20
je 0x20001a82
cmp al, 9
jne 0x20001a85
inc edi
jmp 0x20001a73
mov al, byte [ebp + edi - 0x214]
test al, al
je 0x20001b1d
cmp al, 0x22
lea esi, [edi + 1]
jne 0x20001aaf
mov edi, esi
mov al, byte [ebp + esi - 0x214]
test al, al
je 0x20001ac1
cmp al, 0x22
je 0x20001ac1
inc esi
jmp 0x20001a9d
mov al, byte [ebp + esi - 0x214]
test al, al
je 0x20001ac1
cmp al, 0x20
je 0x20001ac1
inc esi
jmp 0x20001aaf
test edi, edi
je 0x20001ae1
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp + edi - 0x214]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.20002f30
add esp, 0xc
sub esi, edi
lea eax, [ebp - 0x214]
push 0x2000a0a8
push eax
and byte [ebp + esi - 0x214], 0
call fcn.20003280
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.20003280
add esp, 0x10
lea eax, [ebp - 0x214]
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x20001b9d
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
mov esi, str.msvcrt.dll
push edi
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x20001c77
lea eax, [ebp - 0x204]
push eax
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
test eax, eax
jne 0x20001bdf
push 5
pop ebx
jmp 0x20001c77
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.20001d3c
test eax, eax
je 0x20001c04
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.200018b6
mov edi, eax
test edi, edi
jne 0x20001c6a
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x20001c3f
lea eax, [ebp - 0x104]
push eax
call fcn.200015d4
test al, al
je 0x20001c3f
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.200018b6
mov edi, eax
test edi, edi
jne 0x20001c6a
lea eax, [ebp - 0x104]
push str.Xtras
push eax
call fcn.200015ba
test al, al
je 0x20001c67
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.200018b6
mov edi, eax
test edi, edi
jne 0x20001c6a
push 2
pop ebx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4

Function at 0x20001c85
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
xor eax, eax
cmp dword [ebp + 8], esi
push edi
setne al
inc eax
mov edi, eax
or edi, 4
call fcn.20001d0e
test eax, eax
je 0x20001cfa
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x20001cc1
xor eax, eax
jmp 0x20001d08
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x20001cbd
push esi
push edi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret 4
Function at 0x20001d81
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, ebx
mov dword [0x2000ce28], eax
je 0x20001e83
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x20001e6c
push dword [0x2000ce28]
call fcn.20001e89
push str.TempFolder
push dword [0x2000ce28]
call fcn.20003280
push str..aaa
push dword [0x2000ce28]
call fcn.20003280
push dword [0x2000ce28]
call fcn.20003360
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
add esp, 0x14
mov esi, eax
push ebx
push dword [0x2000ce28]
call edi
test eax, eax
jne 0x20001e51
mov eax, dword [0x2000ce28]
movsx ecx, byte [esi + eax - 1]
lea eax, [esi + eax - 1]
cmp ecx, 0x7a
jl 0x20001e27
mov byte [eax], 0x61
mov eax, dword [0x2000ce28]
movsx ecx, byte [eax + esi - 2]
lea eax, [eax + esi - 2]
cmp ecx, 0x7a
jge 0x20001e2d
inc cl
mov byte [eax], cl
jmp 0x20001e48
mov byte [eax], 0x61
mov edx, dword [0x2000ce28]
movsx eax, byte [edx + esi - 3]
lea ecx, [edx + esi - 3]
cmp eax, 0x7a
jge 0x20001e72
inc al
mov byte [ecx], al
push ebx
push dword [0x2000ce28]
jmp 0x20001df8
push dword [0x2000ce28]
call fcn.20001e89
push dword [0x2000ce28]
call fcn.20001ea8
push 1
pop ebx
jmp 0x20001e83
mov edx, dword [0x2000ce28]
cmp edx, ebx
je 0x20001e83
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov dword [0x2000ce28], ebx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x200026ff
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
lea eax, [ebp - 0x208]
push edi
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x20002831
lea eax, [ebp - 0x208]
push eax
call fcn.20001e89
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.20003270
lea eax, [ebp - 0x104]
push str.TempFolder.
push eax
call fcn.20003280
add esp, 0x10
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x20002831
mov eax, dword [ebp - 0x348]
and eax, 0x10
cmp al, 0x10
jne 0x2000281b
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.20003270
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.20003280
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call fcn.20001e89
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.20003270
lea eax, [ebp - 0x44c]
push str.Macromedia.lok
push eax
call fcn.20003280
add esp, 0x10
lea eax, [ebp - 0x44c]
push 0
push 1
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
je 0x2000281b
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x104]
push eax
call fcn.20002837
or ebx, eax
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x20002778
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x20002837
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop esi
push ebx
call fcn.20001e89
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.20003270
lea eax, [ebp - 0x104]
push 0x2000a18c
push eax
call fcn.20003280
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x20002924
lea eax, [ebp - 0x218]
push 0x2000a174
push eax
call fcn.20003450
pop ecx
test eax, eax
pop ecx
je 0x200028ff
lea eax, [ebp - 0x218]
push 0x2000a188
push eax
call fcn.20003450
pop ecx
test eax, eax
pop ecx
je 0x200028ff
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.20003270
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.20003280
add esp, 0x10
lea eax, [ebp - 0x104]
test byte [ebp - 0x244], 0x10
push eax
je 0x200028f7
call fcn.20002837
jmp 0x200028fd
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov esi, eax
test esi, esi
je 0x20002919
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x2000288f
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
test esi, esi
je 0x2000292d
push ebx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x20003425
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.20003856
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x20003448
test byte [esp + 8], 2
je 0x20003448
call fcn.200038c9
mov dword [eax], 0xd
call fcn.200038d2
mov dword [eax], 5
jmp 0x20003421
xor eax, eax
ret
Function at 0x20004a75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x2000a718
cmp edx, dword [eax]
je 0x20004a97
add eax, 8
inc ecx
cmp eax, 0x2000a7a8
jl 0x20004a88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x2000a718]
jne 0x20004bc5
mov eax, dword [0x2000ce78]
cmp eax, 1
je 0x20004b9f
test eax, eax
jne 0x20004ac8
cmp dword [0x2000a1a4], 1
je 0x20004b9f
cmp edx, 0xfc
je 0x20004bc5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x20004aff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.20003270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.20003360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x20004b42
lea eax, [ebp - 0x1a4]
push eax
call fcn.20003360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x2000852c
push edi
call fcn.20006d60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.20003270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.20003280
lea eax, [ebp - 0xa0]
push 0x2000850c
push eax
call fcn.20003280
push dword [esi + 0x2000a71c]
lea eax, [ebp - 0xa0]
push eax
call fcn.20003280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.20006ccf
add esp, 0x2c
pop edi
jmp 0x20004bc5
lea eax, [ebp + 8]
lea esi, [esi + 0x2000a71c]
push 0
push eax
push dword [esi]
call fcn.20003360
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x43f15d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e937

Function at 0x43f168
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043eb72

Function at 0x446d4c
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446b40

Function at 0x451e64
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451a69

Function at 0x451e6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451bea

Function at 0x476497
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [eax + 6]
mov al, byte [eax + 4]
xor byte [edx], al
inc edx
dec ecx
test ecx, ecx
jne 0x4764a3
ret 4

Function at 0x4764ae
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword fs:[0x30]
mov dword [edi], eax
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
push 0
lea eax, [edi + 4]
mov dword [eax], 0x3376500f
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 0
lea eax, [edi + 0xc]
mov dword [eax], 0x2dfc830f
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 0
lea eax, [edi + 0x14]
mov dword [eax], 0x552e48c2
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 0
lea eax, [edi + 0x1c]
mov dword [eax], 0xb3f819f8
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 0
lea eax, [edi + 0x24]
mov dword [eax], 0x7c76ecf5
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 1
lea eax, [edi + 0x2c]
mov dword [eax], 0x116893e9
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 1
lea eax, [edi + 0x34]
mov dword [eax], 0x529977e2
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 1
lea eax, [edi + 0x3c]
mov dword [eax], 0x7b62ef3
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 1
lea eax, [edi + 0x44]
mov dword [eax], 0xa9c5b599
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 1
lea eax, [edi + 0x4c]
mov dword [eax], 0x6b372c05
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 1
lea eax, [edi + 0x54]
mov dword [eax], 0xa9e25a1d
push eax
push esi
call fcn.004765ec
test eax, eax
je 0x4765e8
push 1
lea eax, [edi + 0x5c]
mov dword [eax], 0xf67464e4
push eax
push esi
call fcn.004765ec
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4765e3
Function at 0x4765ec
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
mov eax, dword [edi + eax + 0x78]
add eax, edi
mov ecx, dword [eax + 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x1c]
add edx, edi
mov dword [ebp - 8], edx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0x24]
add edx, edi
mov dword [ebp - 0x10], edx
xor esi, esi
test ebx, ebx
je 0x4766bc
mov eax, dword [ecx + esi*4]
add eax, edi
mov edx, 0x811c9dc5
movzx ecx, byte [eax]
test cl, cl
je 0x4766a8
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
jmp 0x476632
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx ecx, word [ecx + esi*2]
mov eax, dword [eax + ecx*4]
add eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov ecx, eax
xor eax, eax
inc eax
cmp dword [ebp + 0x10], 1
jne 0x4766be
dec eax
xor edx, edx
cmp byte [ecx + edx], 0xf
jne 0x476676
cmp byte [ecx + edx + 1], 5
je 0x4766bc
cmp byte [ecx + edx], 0xc2
je 0x4766bc
cmp byte [ecx + edx], 0xc3
je 0x4766bc
cmp byte [ecx + edx], 0xb8
jne 0x4766a5
cmp byte [ecx + edx + 5], 0xba
jne 0x4766a5
mov esi, dword [ecx + edx + 1]
mov edi, dword [ecx + edx + 6]
mov dword [ebx + 5], edi
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], esi
xor eax, eax
inc eax
jmp 0x4766be
inc edx
jmp 0x476669
mov eax, dword [ebp + 0xc]
cmp edx, dword [eax]
je 0x476646
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 4]
jb 0x476628
xor eax, eax
pop edi
pop esi
add esp, 0x10
pop ebp
ret 0xc
Function at 0x4766d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor edx, edx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [esi + 0x48]
call fcn.004766c7
push edx
push edx
push 0x60
push 1
push edx
push 0x80
push edx
lea eax, [ebp - 0x24]
push eax
push edi
push 0x80100080
lea eax, [ebp - 4]
push eax
call fcn.004766d1
add esp, 0x2c
test eax, eax
jne 0x476862
cmp dword [ebp - 0x20], 1
jne 0x476862
xor edx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], edx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
push dword [esi + 0x40]
call fcn.004766c7
push 5
push 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call fcn.004766d1
add esp, 0x14
test eax, eax
jne 0x476862
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x476862
push dword [ebp - 0x14]
push 8
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
push eax
call dword [esi + 0x20]
mov dword [ebp - 0x2c], eax
push dword [esi + 0x58]
call fcn.004766c7
xor edx, edx
push edx
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push edx
push edx
push edx
push dword [ebp - 4]
call fcn.004766d1
add esp, 0x24
test eax, eax
jne 0x476862
push dword [esi + 0x50]
call fcn.004766c7
push dword [ebp - 4]
call fcn.004766d1
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x5a4d
je 0x47685e
movdqu xmm0, xmmword [ebx + 9]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
movdqu xmm1, xmmword [eax + ecx]
xorps xmm1, xmm0
movdqu xmmword [eax + ecx], xmm1
add ecx, 0x10
mov eax, edx
sub eax, ecx
cmp eax, 0x10
jge 0x4767d1
test eax, eax
je 0x476802
push edx
mov dl, byte [ebx + 9]
mov eax, dword [ebp - 0x2c]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, dword [esp]
jne 0x4767f8
pop edx
push dword [esi + 0x48]
call fcn.004766c7
xor edx, edx
push edx
push edx
push 0x60
push 1
push edx
push 0x80
push edx
lea eax, [ebp - 0x24]
push eax
push edi
push 0x40100080
lea eax, [ebp - 4]
push eax
call fcn.004766d1
add esp, 0x2c
test eax, eax
jne 0x476862
push dword [esi + 0x60]
call fcn.004766c7
xor edx, edx
push edx
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push edx
push edx
push edx
push dword [ebp - 4]
call fcn.004766d1
add esp, 0x24
test eax, eax
jne 0x476862
inc eax
jmp 0x476865
xor eax, eax
jmp 0x476865
xor eax, eax
dec eax
push eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x47687a
push eax
xor edx, edx
push edx
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
push eax
call dword [esi + 0x28]
pop eax
pop edi
pop esi
add esp, 0x30
pop ebp
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x7792ab71
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ebx
and esi, 0xffff0000
push edi
je 0x7792abc7
push 0x40
push esi
call dword [0x889cd4]
test eax, eax
jne 0x7792abbf
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x7792abbf
mov eax, dword [esi + 0x3c]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x7792abbf
push 0xf8
push edi
call dword [0x889cd4]
test eax, eax
jne 0x7792abbf
cmp dword [edi], 0x4550
jne 0x7792abbf
mov eax, dword [edi + 0x50]
add eax, esi
cmp eax, ebx
ja 0x7792abcc
sub esi, 0x10000
jne 0x7792ab7d
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
jmp 0x7792abc9
Function at 0x410f8c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004057b0
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040fbd3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410fce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41112a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041a360
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x51d460]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00411f89
mov ecx, dword [esi*4 + 0x51d460]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x411123
cmp eax, dword [ecx + edi + 0x24]
jne 0x411123
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411123
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411f89
add esp, 0x14
test edx, edx
jl 0x411123
jg 0x411099
test eax, eax
jb 0x411123
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411123
jl 0x4110b3
cmp dword [ebp - 0x1008], eax
ja 0x411123
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4110d1
test ebx, ebx
je 0x41110a
cmp ecx, edi
jae 0x41110a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4110eb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4110f7
cmp byte [ecx + 1], 0xa
jne 0x4110f7
inc ecx
jmp 0x4110f7
movzx eax, al
movsx eax, byte [eax + 0x4252f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4110d1
cmp edx, ebx
jne 0x4110d1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411128
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404a93
leave
ret
Function at 0x411421
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x51d460]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411461
cmp byte [ebx], 0xa
jne 0x411461
or byte [edi + eax + 0x28], 4
jmp 0x411466
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x411565
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411548
inc eax
cmp dl, 0xd
je 0x411492
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4114b8
cmp eax, ecx
jae 0x4114c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41147a
jmp 0x411565
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411543
cmp dword [ebp - 0x10], 0
je 0x411543
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x51d460]
test byte [eax + edi + 0x28], 0x48
je 0x41151d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411508
mov byte [esi], dl
jmp 0x411519
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51d460]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411565
cmp byte [ebp - 1], 0xa
jne 0x41152c
cmp esi, ebx
jne 0x41152c
mov byte [esi], 0xa
jmp 0x411564
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411fa7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411565
mov byte [esi], 0xd
jmp 0x411564
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x51d460]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411562
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411565
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret