joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401bd7
pop dword [ebp - 8]
mov eax, 0x1c39ccda
add eax, 0xe4064efd
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x1bb8ef49
add dword [ebp - 0x18], 0x32995602
mov dword [ebp - 0x14], 0xd838d42a
sub dword [ebp - 0x14], 0xa60587e5
mov dword [ebp - 0x10], 0xbf286571
sub dword [ebp - 0x10], 0x72dc2143
mov dword [ebp - 0xc], 0x8959dfde
add dword [ebp - 0xc], 0x76a62022
lea eax, [ebp - 0x18]
push eax
mov eax, 0x167c7419
add eax, 0xe9c3fc47
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x38127581
add dword [ebp - 0x18], 0x3c5ff3d5
mov dword [ebp - 0x14], 0xd0d314d3
add dword [ebp - 0x14], 0x70994ca2
mov dword [ebp - 0x10], 0x488acc09
sub dword [ebp - 0x10], 0xe51b5f9d
mov dword [ebp - 0xc], 0x7efb2669
add dword [ebp - 0xc], 0x8104d997
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xb57e3a4f
sub eax, 0xb53dc94f
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3905f
push 0
call eax
mov ecx, 0xc29d72fc
sub ecx, 0xc29d2131
xor ebx, ebx
add ebx, eax
mov edx, 0x9b7493f4
sub edx, 0x9b3393f4
add edx, dword [ebp - 8]
mov edi, 0xe80ec9ca
sub edi, 0x9e2a0b6e
add dword [ebp - 4], eax
mov esi, dword [edx]
sub dword [ebp - 4], ebx
sub esi, edi
mov dword [ebx], esi
xor dword [ebp - 4], 0x7f1a68ae
add ebx, 0xfb70ef66
sub ebx, 0xfb70ef62
add edx, 0x42d2be35
sub edx, 0x42d2be31
loop 0x401cfb
add eax, 0x8492da7b
add eax, 0x7b6e5f84
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1f6d570b
add ecx, 0xe0d2a8f5
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.00401bc8
jmp 0x406676

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x10001070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
jmp 0x1000113c
lea eax, [ebp - 0x104]
push eax
call 0x100012e8
push 0x1000107e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x10001209
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x10001112
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x1000126e
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x10001102
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x1000126e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x100011ee
mov word [ebx], 0x5c
push 0x10001132
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x1000126e
mov dword [0x1000300c], eax
push 0x10001107
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x10001263
push eax
push 0x3ea
call eax
pop edx
test eax, eax
je 0x10001263
mov dword [0x10003008], eax
push 0x3eb
mov ebx, section..data
call edx
test eax, eax
je 0x10001263
mov dword [section..data], edx
call 0x1000124a
add dword [esp], 0x4db6
call eax
mov dword [0x10003004], eax
sub esp, 4
pop dword [0x10003010]
leave
ret
push dword [0x1000300c]
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x1000300c], 0
mov dword [section..data], 0xffffffff
mov dword [0x10003010], 0
mov dword [0x10003004], 0
mov dword [0x10003008], 0
push 0x10
push 0x1000112c
push 0x10001088
push 0
call sub.USER32.dll_MessageBoxA
push 0xffffffffffffffff
call sub.KERNEL32.dll_ExitProcess
leave
ret

Function at 0x11728be0
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x1722952
jmp fcn.10001058

Function at 0x11728bea
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x172295e
jmp fcn.10001058
Function at 0x401170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413a6d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x401255
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp + 8], ebx
cmp ebx, 0x7fffffff
ja 0x401267
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401ef0
mov edi, dword [ebp - 0x1c]
xor esi, esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov cl, byte [esi + ecx]
not cl
mov byte [ebp + 0xb], cl
cmp eax, edi
je 0x4011ff
mov byte [eax], cl
inc eax
mov dword [ebp - 0x20], eax
jmp 0x401212
lea ecx, [ebp + 0xb]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00401fb0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
inc esi
cmp esi, ebx
jl 0x4011e8
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x401255
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x40124b
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40126c
push edi
push esi
call fcn.004023c4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401ee0
call fcn.004058fb
int3
Function at 0x402b11
Capabilities:
Parse pe header

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

Function at 0x40af47
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40af92
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b0e2
test al, al
jne 0x40af8c
sub edx, 2
cmp edx, edi
jne 0x40af72
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40afb4
lea eax, [edi + 2]
cmp edx, eax
je 0x40afb4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040ae93
add esp, 0x10
jmp 0x40b0ae
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b0e2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40aff7
push dword [ebp - 0x25c]
jmp 0x40afa4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40b034
cmp word [ebp - 0x226], 0
je 0x40b055
cmp word [ebp - 0x226], ax
jne 0x40b034
cmp word [ebp - 0x224], 0
je 0x40b055
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040ae93
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40b0a1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40b00e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40b089
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b0ae
push 0x40acc3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040f620
add esp, 0x10
jmp 0x40b07e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402264
leave
ret

Function at 0x40c87f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41648c
push 0x416484
push str.FlsAlloc
push 0x1f
call fcn.0040c7ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c8b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x41414c]
call esi
jmp 0x40c8b9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40c8fd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41649c
push 0x416494
push str.FlsGetValue
push 0x21
call fcn.0040c7ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c934
push dword [ebp + 8]
mov ecx, esi
call dword [0x41414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c93c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4164a4
push 0x41649c
push str.FlsSetValue
push 0x22
call fcn.0040c7ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c976
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413430
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41345d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41345d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x530240
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf1000]
push edi
or ebp, 0xffffffff
jmp 0x530262
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x530269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x530258
mov eax, 1
add ebx, ebx
jne 0x53027b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x53028c
jne 0x5302ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5302ab
dec eax
add ebx, ebx
jne 0x530298
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x530270
add ebx, ebx
jne 0x5302a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5302fd
xor ecx, ecx
sub eax, 3
jb 0x5302c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x530332
sar eax, 1
mov ebp, eax
jmp 0x5302ce
add ebx, ebx
jne 0x5302ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53029c
inc ecx
add ebx, ebx
jne 0x5302dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53029c
add ebx, ebx
jne 0x5302e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5302de
jne 0x5302fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5302de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53031c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53030e
jmp 0x53025e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53031c
add edi, ecx
jmp 0x53025e
pop esi
mov edi, esi
mov ecx, 0x651d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x53033a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x53033f
lea edi, [esi + 0x116000]
mov eax, dword [edi]
or eax, eax
je 0x5303a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x130a14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x130b54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x530365
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x130b58]
or eax, eax
je 0x5303a1
mov dword [ebx], eax
add ebx, 4
jmp 0x530382
call dword [esi + 0x130b68]
mov ebp, dword [esi + 0x130b5c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x48f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5303db
sub esp, 0xffffff80
jmp 0x49f108
Function at 0x408150
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40816a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408171
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408160
mov eax, 1
add ebx, ebx
jne 0x408183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408178
jne 0x408194
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408178
xor ecx, ecx
sub eax, 3
jb 0x4081a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40821a
mov ebp, eax
add ebx, ebx
jne 0x4081b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4081c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4081e4
inc ecx
add ebx, ebx
jne 0x4081d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4081c5
jne 0x4081e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4081c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408204
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4081f5
jmp 0x408166
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408204
add edi, ecx
jmp 0x408166
pop esi
mov edi, esi
mov ecx, 0x63
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408222
cmp byte [edi], 0
jne 0x408222
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408227
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408296
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x82b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408254
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x82c0]
or eax, eax
je 0x408290
mov dword [ebx], eax
add ebx, 4
jmp 0x408271
call dword [esi + 0x82bc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4082c7
cmp al, 0xef
ja 0x4082ba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40829c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4082a9
mov ebp, dword [esi + 0x82c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4082fb
sub esp, 0xffffff80
jmp 0x40156f
Function at 0x2aa01671
Capabilities:
Check os version
Create process on windows
Delete file
Encode data using xor
Get common file path
Get file size
Read file on windows
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x2aa01110]
push ebx
push esi
mov dword [esp + 0x220], eax
push edi
xor eax, eax
lea ecx, [ecx]
xor byte [eax + 0x2aa02608], 0x2c
inc eax
cmp eax, 0x730
jl 0x2aa01691
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x10000000
push 0x2aa01134
call ebx
cmp eax, 0xffffffff
jne 0x2aa01734
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x2aa01746
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x2aa01168
call ebx
test ax, ax
jne 0x2aa0172c
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x2aa01160
push 0
call esi
push 0x3e8
call edi
push 0x2aa01168
call ebx
test ax, ax
je 0x2aa01705
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2aa01168
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov edi, eax
push 0x2aa02608
push edi
call sub.CRTDLL.dll_sprintf
mov edx, 0x2aa02608
add esp, 0x30
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x2aa01776
lea edx, [esp + 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x118]
dec edi
jmp 0x2aa017a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x2aa017a0
mov eax, dword [0x2aa01154]
mov ecx, dword [0x2aa01158]
mov dx, word [0x2aa0115c]
push 0
push 0
push 3
mov dword [edi], eax
mov al, byte [0x2aa0115e]
push 0
mov dword [edi + 4], ecx
push 3
push 0x80000000
lea ecx, [esp + 0x130]
mov word [edi + 8], dx
push ecx
mov byte [edi + 0xa], al
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x2aa0184c
xor eax, eax
push eax
mov ecx, 0x41
lea edi, [esp + 0x14]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.2aa01180
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.2aa01220
call fcn.2aa01470
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0xad5370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xad538e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xafe074
push ecx
mov edi, eax
call fcn.00ae9198
mov esi, eax
add esp, 8
test esi, esi
jne 0xad53cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ae902e
push esi
call fcn.00ae8fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret