joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push ebp
jne 0x401e56
push esi
lea eax, [ebp + 5]
push 0x78
push eax
push ebx
call 0xf386ac
or dword [esi], 0x9615e408
add byte [ecx + 0x15e4080e], al
xchg esi, eax
shl byte [ebp], 0x50
push ecx
add edx, 0x40
xor al, 0xac
aam 0x40
add byte [edx - 1], dl
adc eax, sym.imp.MSVCRT.dll_fprintf
mov eax, dword [0x4102ac]
add esp, 0x14
push esi
sal byte [edi + ecx + 0x50], 0x68
push esp
sar cl, cl
add bh, bh
in eax, 0x64
rol dword [eax], 0x83
add dword [eax], ecx
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push es
invalid

Function at 0x40a721
Capabilities:
Check os version

Disassembly:
xchg byte [ebx - 0x4d3fd25f], al
add byte [esi + 0x14], dl
rcl byte [edi + 0xf], 0x85
jmp 0x6840e734

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

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x406b2c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004043f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406bc7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4092e4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406bc7
cmp eax, 1
je 0x406be8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406bc7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406b94
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406bc3
xor eax, eax
inc eax
jmp 0x406c07
cmp edi, eax
jae 0x406bcb
xor eax, eax
jmp 0x406c07
cmp eax, esi
jae 0x406bd2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4092e4]
jmp 0x406beb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
mov eax, section..data
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6f19048d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x527411ee
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x406490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41d78b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404214
call fcn.00409024
push 4
mov dword [esp + 0x18], 0
call fcn.0040a7e3
mov edi, eax
add esp, 4
test edi, edi
je 0x406504
push ebx
call fcn.00408e1f
mov dword [edi], eax
call fcn.00408bde
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00408fe5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4064f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040900d
pop ebx
jmp 0x406506
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b2db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4213ec]
jne 0x40b2e5
repz ret
jmp fcn.0041213c
Function at 0x417864
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00410d57
and dword [ebp - 0x14], 0
cmp dword [0x4b8370], 0
mov dword [ebp - 0x18], eax
jne 0x417917
push 0x403f40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4179bf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f34
push ebx
call edi
test eax, eax
je 0x4179bf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f24
push ebx
mov dword [0x4b8370], eax
call edi
push eax
call esi
push 0x403f10
push ebx
mov dword [0x4b8374], eax
call edi
push eax
call esi
push 0x403ef4
push ebx
mov dword [0x4b8378], eax
call edi
push eax
call esi
mov dword [0x4b8380], eax
test eax, eax
je 0x417917
push 0x403edc
push ebx
call edi
push eax
call esi
mov dword [0x4b837c], eax
mov eax, dword [0x4b837c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417970
cmp dword [0x4b8380], ecx
je 0x417970
push eax
call esi
push dword [0x4b8380]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417970
test ebx, ebx
je 0x417970
call edi
test eax, eax
je 0x417967
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417967
test byte [ebp - 8], 1
jne 0x417970
or dword [ebp + 0x10], 0x200000
jmp 0x4179a3
mov eax, dword [0x4b8374]
cmp eax, dword [ebp - 0x18]
je 0x4179a3
push eax
call esi
test eax, eax
je 0x4179a3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4179a3
mov eax, dword [0x4b8378]
cmp eax, dword [ebp - 0x18]
je 0x4179a3
push eax
call esi
test eax, eax
je 0x4179a3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b8370]
call esi
test eax, eax
je 0x4179bf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4179c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2db
leave
ret
Function at 0x419280
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x13a0
call fcn.00418120
cmp dword [0x9627c4], 0x37
push esi
jne 0x41939a
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea ecx, [esp + 0xba4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov eax, dword [esp + 0xc]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x3a4]
push ecx
push 0x40404c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x7a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x180]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x5c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call esi
push 0x404064
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.0040a600
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov edx, dword [0x964f28]
mov dword [esp + 8], edx
mov eax, 0x5d1
add dword [esp + 8], eax
mov eax, dword [esp + 8]
mov cl, byte [eax + edi]
mov edx, dword [0x960fbc]
mov byte [edx + edi], cl
pop esi
add esp, 0x13a0
ret
Function at 0x401eb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401efb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ef4
test esi, esi
je 0x401ef4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ed0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4020e0
Capabilities:
Write file on windows

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

Function at 0x402130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402208
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40216e
cmp eax, 4
jne 0x402190
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40217e
cmp edx, 4
je 0x40217e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004020e0
Function at 0x41ff24
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp + 0xf88], eax
cmp byte [0x455898], 0
push esi
mov esi, dword [ebp + 0xf94]
je 0x41ffc2
cmp word [0x45589a], 0
je 0x41ffc2
push edi
push 0x800
lea eax, [ebp - 0x78]
push eax
push 0x45589a
call fcn.0041e9ba
lea eax, [ebp - 0x80]
xor edi, edi
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41ffc1
push esi
call fcn.00426433
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
pop esi
call fcn.004210f9
add ebp, 0xf8c
leave
ret 4

Function at 0x41ffdd
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push esi
call fcn.004123d6
mov esi, eax
test esi, esi
je 0x42003e
movzx ecx, word [esi]
push ecx
jmp 0x420029
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004124f2
test al, al
jne 0x420022
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004210f9
leave
ret 4
Function at 0x40171b
Capabilities:
Parse pe header

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

Function at 0x422b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x422b8c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x422bd3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0046f7ae
add esp, 8
test eax, eax
jne 0x422bd1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x422bd5
jmp 0x422b83
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41a2bf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419f6d

Function at 0x41de7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dcfb

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp int.00401219

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

Disassembly:
pushal
nop
mov eax, section..rsrc
mov ebx, 0x40915c
nop
mov ecx, 0x2da0213f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2f050b4e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0xaa1c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0xaa1c72
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00aa1c80
lea eax, [ebx + 1]
cmp eax, 2
jb 0xaa1c6b
mov dword [esi], ebx
call fcn.00ac6b80
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.00ad8100
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0xaa3b28
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov edx, ecx
add edi, esi
add edx, eax
test cl, cl
mov ecx, 4
cmovs edx, edi
cmovs eax, esi
sub edx, eax
cmp edx, ecx
jb 0xaa3b9e
mov esi, 0xfffffffc
mov ebx, eax
lea ecx, [edx + esi]
and esi, ecx
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov dword [ebp - 0x10], esi
imul edi, dword [ebx], 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
add edx, 0xfffffffc
add ebx, 4
mov esi, edi
shr esi, 0x18
xor esi, edi
imul esi, esi, 0x5bd1e995
xor ecx, esi
cmp edx, 3
ja 0xaa3b6a
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [esi + eax + 4]
sub edx, esi
jmp 0xaa3ba0
mov ecx, edx
cmp edx, 1
je 0xaa3bc1
cmp edx, 2
je 0xaa3bb8
cmp edx, 3
jne 0xaa3bcc
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0xac7670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0xc05fa8]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0xc07908], 0
jne 0xac7884
mov esi, dword [0xc078f8]
test esi, esi
je 0xac773c
test byte [0xc05150], 1
je 0xac7884
cmp byte [esi + 0xb], 0
jns 0xac76b8
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0xc07908], eax
inc eax
cmp eax, 1
ja 0xac7884
lea esi, [ebp - 0x218]
mov word [ebp - 0x218], 0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0xac7882
cmp eax, 0x104
ja 0xac7882
mov ecx, dword [0xc078f8]
push esi
call fcn.00abdc5e
mov ecx, dword [0xc078f8]
movzx eax, byte [ecx + 0xb]
test al, al
js 0xac7823
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
jne 0xac7830
jmp 0xac7840
push 0xc
call fcn.00b86866
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
push edi
call fcn.00b9f3c4
add esp, 4
cmp eax, 0x7ffffff0
jae 0xac789b
mov ebx, eax
cmp eax, 5
jae 0xac7796
mov eax, esi
test ebx, ebx
mov byte [esi + 0xb], bl
jne 0xac77c2
jmp 0xac77d5
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0xac78a2
lea eax, [edi + edi]
push eax
call fcn.00b86866
add esp, 4
or edi, 0x80000000
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 4], ebx
lea edi, [ebp - 0x218]
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov edi, eax
call fcn.00b8a240
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0xac77e6
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.00abe0b2
cmp eax, 0xffffffff
mov bl, 1
je 0xac7802
inc eax
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.00abdd9c
mov ecx, esi
push 0xbb5e78
call fcn.00abdae2
mov dword [0xc078f8], esi
test byte [0xc05150], 1
jne 0xac76b0
jmp 0xac7884
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0xac7840
push 0xbb5e74
call fcn.00abdae2
mov ecx, dword [0xc078f8]
push 0xbb5e78
call fcn.00abdae2
mov eax, dword [0xc078f8]
cmp byte [eax + 0xb], 0
jns 0xac7857
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0xc07908], eax
inc eax
cmp eax, 1
ja 0xac7884
mov dword [0xc07908], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00b868d1
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00abca1c
call fcn.00b99763
int3