joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007535
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
mov edx, dword [esp + 0x210]
mov eax, edx
push ebx
push esi
xor ebx, ebx
mov cl, byte [edx]
push edi
test cl, cl
je 0x100075b2
mov esi, 0x1000a4a4
mov ch, 0x2f
cmp ch, cl
jne 0x1000756a
mov ebx, eax
inc esi
mov ch, byte [esi]
test ch, ch
jne 0x10007564
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x1000755d
test ebx, ebx
je 0x100075b2
sub ebx, edx
cmp ebx, 0xf0
jbe 0x1000758d
xor eax, eax
jmp 0x100076c9
push ebx
push edx
lea eax, [esp + 0x14]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea edi, [esp + 0xc]
add edi, ebx
mov esi, 0x1000a4a8
lea ebx, [esp + ebx + 0xd]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x100075c6
mov esi, str.dependentlibs.list
lea edi, [esp + 0xc]
lea ebx, [esp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push str.MOZ_RUN_GTEST
call dword [sym.imp.MSVCR120.dll_getenv]
pop ecx
test eax, eax
je 0x100075ec
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100075db
mov esi, str..gtest
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
push 0x1000a4e8
push eax
call fcn.100074e0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10007586
mov edi, dword [sym.imp.MSVCR120.dll_fgets]
push ebp
mov byte [ebx], 0
mov ebp, 0x104
jmp 0x1000768f
lea ecx, [esp + 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000761e
sub ecx, edx
je 0x1000768f
cmp byte [esp + 0x114], 0x23
je 0x1000768f
cmp byte [esp + ecx + 0x113], 0xa
jne 0x10007650
lea eax, [ecx - 1]
cmp eax, ebp
jae 0x100076f1
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x10]
sub ecx, eax
add ecx, ebx
cmp ecx, ebp
ja 0x100076e6
lea ecx, [esp + 0x114]
mov edx, ebx
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x1000766d
movzx eax, byte [0x1000d1e0]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1000740a
pop ecx
pop ecx
test al, al
je 0x100076e1
push esi
lea eax, [esp + 0x118]
push ebp
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x10007614
mov eax, dword [0x1000d2d4]
push str.NS_GetFrozenFunctions
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100076e1
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
mov eax, edi
pop ecx
pop ebp
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100088a2
add esp, 0x20c
ret
call fcn.100076f7
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
xor eax, eax
jmp 0x100076c7
call fcn.10008f58
int3
Function at 0x100084f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1000d2d8]
test eax, eax
je 0x10008507
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10008560
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll__vscprintf]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1000855f
inc edi
lea eax, [ebp - 4]
push edi
push eax
call fcn.100081df
mov esi, dword [ebp - 4]
pop ecx
pop ecx
test esi, esi
je 0x1000855f
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.MSVCR120.dll__vsnprintf]
add esp, 0x10
mov byte [esi + edi - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
push 0x1000a760
push 2
call dword [sym.imp.MSVCR120.dll__dup]
pop ecx
push eax
call dword [sym.imp.MSVCR120.dll__fdopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10008594
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR120.dll_vfprintf]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000876a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10010
call fcn.10009180
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1000c], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x10020]
xor ebp, ebp
push 1
push eax
push ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1000880a
cmp dword [esp + 0x10024], ebp
je 0x100087be
push ebp
push ebp
push ebp
push dword [esp + 0x10030]
push esi
call ebx
test eax, eax
je 0x1000880a
push edi
mov edi, ebp
cmp dword [esp + 0x1002c], edi
jbe 0x100087fc
mov ecx, 0x10000
push ebp
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100087fc
mov ecx, 0x10000
cmp dword [esp + 0x10], ecx
jne 0x100087fc
add edi, ecx
cmp edi, dword [esp + 0x1002c]
jb 0x100087cf
push ebp
push ebp
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call ebx
pop edi
mov ecx, dword [esp + 0x10018]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100088a2
add esp, 0x10010
ret
Function at 0x32025df9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x32025e08
pop dword [ebp - 0xc]
mov eax, 0xdb13740b
sub eax, 0xa9111603
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x23e6a05b
sub dword [ebp - 0x1c], 0xd5945b10
mov dword [ebp - 0x18], 0x24aa5705
add dword [ebp - 0x18], 0xd88f540
mov dword [ebp - 0x14], 0xe602cf9f
add dword [ebp - 0x14], 0x6649748f
mov dword [ebp - 0x10], 0x4edaed64
add dword [ebp - 0x10], 0xb125129c
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x236b0733
sub eax, 0xf165d6af
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xa66eb827
add dword [ebp - 0x1c], 0xce03b12f
mov dword [ebp - 0x18], 0x3bd684d2
add dword [ebp - 0x18], 0x595dca3
mov dword [ebp - 0x14], 0x79b369f1
sub dword [ebp - 0x14], 0x1643fd85
mov dword [ebp - 0x10], 0xf75905ea
add dword [ebp - 0x10], 0x8a6fa16
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x4846e
push 0
call eax
mov ecx, 0x4b6d
xor esi, esi
add esi, eax
mov edx, 0x382906bd
sub edx, 0x62164bd
add edx, dword [ebp - 0xc]
mov ebx, 0x228382fa
xor dword [ebp - 4], ecx
mov edi, dword [edx]
xor dword [ebp - 4], esi
sub edi, ebx
mov dword [ebp - 8], 0xdfbbb9a3
mov dword [esi], edi
xor dword [ebp - 8], 0x13dbb47c
add esi, 4
add edx, 4
loop 0x32025f1b
add eax, 0xd32b25b5
sub eax, 0xd32a052e
mov ebx, eax
add eax, 0x629298fc
add eax, 0x9d6d6709
mov ecx, 0x34af286a
sub ecx, 0x2af286a
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401bbc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401bfb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bfb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bfb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bfb
cmp dword [ecx + 0x74], 0xe
jbe 0x401bfb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43a810
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
or ebp, 0xffffffff
jmp 0x43a832
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43a839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43a828
mov eax, 1
add ebx, ebx
jne 0x43a84b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43a840
jne 0x43a85c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a840
xor ecx, ecx
sub eax, 3
jb 0x43a870
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43a8e2
mov ebp, eax
add ebx, ebx
jne 0x43a87b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43a888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43a8ac
inc ecx
add ebx, ebx
jne 0x43a898
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43a88d
jne 0x43a8a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a88d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43a8cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43a8bd
jmp 0x43a82e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43a8cc
add edi, ecx
jmp 0x43a82e
pop esi
mov edi, esi
mov ecx, 0x2c9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43a8ea
cmp byte [edi], 5
jne 0x43a8ea
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 0x43a8ef
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x43a95e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a284]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43a91c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3a28c]
or eax, eax
je 0x43a958
mov dword [ebx], eax
add ebx, 4
jmp 0x43a939
call dword [esi + 0x3a288]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x43a98f
cmp al, 0xef
ja 0x43a982
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x43a964
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x43a971
mov ebp, dword [esi + 0x3a290]
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 0x43a9c3
sub esp, 0xffffff80
jmp 0x41103c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x449890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x38000]
push edi
jmp 0x4498aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4498b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4498a0
mov eax, 1
add ebx, ebx
jne 0x4498c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4498d4
jne 0x4498f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4498f3
dec eax
add ebx, ebx
jne 0x4498e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4498b8
add ebx, ebx
jne 0x4498ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x449945
xor ecx, ecx
sub eax, 3
jb 0x44990b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44997a
sar eax, 1
mov ebp, eax
jmp 0x449916
add ebx, ebx
jne 0x449916
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4498e4
inc ecx
add ebx, ebx
jne 0x449924
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4498e4
add ebx, ebx
jne 0x449931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x449926
jne 0x449942
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x449926
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x449964
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x449956
jmp 0x4498a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x449964
add edi, ecx
jmp 0x4498a6
pop esi
mov edi, esi
mov ecx, 0x215e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x449982
cmp byte [edi], 0xb
jne 0x449982
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 0x449987
lea edi, [esi + 0x47000]
mov eax, dword [edi]
or eax, eax
je 0x4499ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4a3a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4a3e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4499b4
mov ecx, edi
jns 0x4499e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4a3e8]
or eax, eax
je 0x4499f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4499d1
call dword [esi + 0x4a3e4]
mov ebp, dword [esi + 0x4a3ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x449a33
sub esp, 0xffffff80
jmp 0x404230
Function at 0x401ac7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43a034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x401afb
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412760
add esp, 0xc
jmp 0x401b0e
push dword [esi + 0x1c]
lea eax, [ebp - 0xc]
push 8
push 1
push eax
call fcn.004131db
add esp, 0x10
movzx ecx, byte [ebp - 8]
movzx eax, byte [ebp - 7]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 8], 0
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0xc]
push 0x4321a8
push eax
mov dword [edi], ecx
call fcn.004134a0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.004126d0
mov esp, ebp
pop ebp
ret 4

Function at 0x401bf3
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x401c09
cmp eax, ecx
jne 0x401c24
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.004131db
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x401c3c
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 1
mov eax, dword [edi + 0x440]
je 0x401cf9
cmp eax, dword [edi + 0x438]
jae 0x401cc3
push ebx
mov ebx, 0x10000
mov esi, dword [edi + 0x440]
mov eax, dword [edi + 0x434]
and esi, 0x1ffff
mov ecx, dword [edi + 0x45c]
mov edx, dword [edi + 0x454]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], ebx
jne 0x401cab
push dword [edi + 0x20]
push ebx
push 1
push dword [edi + 0x454]
call fcn.0041374f
add esp, 0x10
and dword [edi + 0x45c], 0
inc dword [edi + 0x440]
mov eax, dword [edi + 0x440]
inc dword [edi + 8]
cmp eax, dword [edi + 0x438]
jb 0x401c5e
pop ebx
and dword [edi + 0x43c], 0
pop edi
pop esi
ret
mov esi, dword [edi + 0x440]
mov eax, dword [edi + 0x434]
and esi, 0x1ffff
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 8]
inc dword [edi + 0x440]
mov eax, dword [edi + 0x440]
cmp eax, dword [edi + 0x438]
jb 0x401ccd
jmp 0x401cc3
Function at 0x401d03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0x10]
mov dword [ebp - 4], ebx
jmp 0x401e4f
push 1
mov ecx, esi
call fcn.00401e8e
mov ecx, esi
cmp eax, 1
jne 0x401d55
push 8
call fcn.00401e8e
mov edx, dword [esi + 0x438]
mov ecx, dword [esi + 0x434]
and edx, 0x1ffff
mov byte [edx + ecx], al
inc dword [esi + 0x438]
inc dword [esi + 0x43c]
jmp 0x401dfa
push 0xf
call fcn.00401e8e
push 2
mov ecx, esi
mov dword [ebp - 8], eax
xor edi, edi
call fcn.00401e8e
cmp eax, 3
jne 0x401db8
push eax
pop edi
push eax
mov ecx, esi
call fcn.00401e8e
cmp eax, 7
jne 0x401db8
push 0xa
pop edi
push 5
mov ecx, esi
call fcn.00401e8e
cmp eax, 0x1f
jne 0x401db8
push 0x29
pop edi
push 8
mov ecx, esi
call fcn.00401e8e
mov ebx, 0xff
cmp eax, ebx
jne 0x401db8
lea edi, [ebx + 0x29]
jmp 0x401dab
add edi, ebx
push 8
mov ecx, esi
call fcn.00401e8e
cmp eax, ebx
je 0x401da9
mov ebx, dword [esi + 0x438]
add edi, 3
sub ebx, dword [ebp - 8]
add edi, eax
je 0x401df7
mov ecx, dword [esi + 0x438]
mov eax, ebx
mov edx, dword [esi + 0x434]
and eax, 0x1ffff
and ecx, 0x1ffff
inc ebx
mov al, byte [eax + edx]
mov byte [ecx + edx], al
inc dword [esi + 0x438]
inc dword [esi + 0x43c]
dec edi
jne 0x401dc8
mov ebx, dword [ebp - 4]
mov ecx, esi
call fcn.00401c3c
mov eax, dword [0x43ce00]
cmp eax, 0x1000
jbe 0x401e40
and dword [0x43ce00], 0
mov edi, dword [esi + 0x450]
test edi, edi
je 0x401e46
mov ecx, dword [esi + 8]
xor edx, edx
imul eax, ecx, 0x64
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x401e46
mov byte [esi + 0x444], 1
jmp 0x401e46
inc eax
mov dword [0x43ce00], eax
cmp byte [esi + 0x444], 0
jne 0x401e89
cmp dword [esi + 0x438], ebx
jb 0x401d18
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x401e80
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.0041374f
add esp, 0x10
and dword [esi + 0x45c], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
pop eax
jmp 0x401e82

Function at 0x401f2a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
je 0x401f55
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x401f69
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004131db
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4021be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40223d
push 0
push str.SCRIPT
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x40223d
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40223d
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40223d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40223d
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40249b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x43a034]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xe4]
call fcn.00411620
push dword [ebp + 0x10]
lea ecx, [ebp - 0xe4]
call fcn.00411765
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x4024e9
push ecx
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00411739
xor byte [edi + esi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4024d3
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004126d0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402aaa
Capabilities:
Parse pe header

Disassembly:
cmp byte [ecx + 0xd], 0
je 0x402abb
mov dword [ecx + 0x10], 8
xor al, al
jmp 0x402b27
and dword [ecx + 0x10], 0
mov edx, dword [ecx + 8]
push esi
test edx, edx
je 0x402b17
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x402b0e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x402b05
movzx edx, word [eax + 4]
mov esi, 0x14c
cmp dx, si
je 0x402af6
mov esi, 0x8664
cmp dx, si
jne 0x402b05
push 3
pop edx
cmp word [eax + 0x5c], dx
je 0x402b1e
mov word [eax + 0x5c], dx
jmp 0x402b1e
mov dword [ecx + 0x10], 7
jmp 0x402b1e
mov dword [ecx + 0x10], 6
jmp 0x402b1e
mov dword [ecx + 0x10], 1
xor eax, eax
cmp dword [ecx + 0x10], eax
pop esi
sete al
ret 4

Function at 0x402b2a
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xd], 0
je 0x402b40
mov dword [esi + 0x10], 8
xor al, al
jmp 0x402b91
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x402b82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402b79
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402b70
call fcn.00402c17
test eax, eax
je 0x402b89
mov dword [edi + 8], eax
jmp 0x402b89
mov dword [esi + 0x10], 7
jmp 0x402b89
mov dword [esi + 0x10], 6
jmp 0x402b89
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
sete al
pop edi
pop esi
pop ecx
ret
Function at 0x4047eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push edi
push eax
mov edi, 0x20019
xor ebx, ebx
push edi
push ebx
push str.SoftwareAutoIt_v3Aut2Exe
push 0x80000001
call esi
test eax, eax
je 0x404830
lea eax, [ebp - 8]
push eax
push edi
push ebx
push str.SoftwareHiddenSoftAutoIt3Aut2Exe
push 0x80000001
call esi
test eax, eax
jne 0x40492f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0x43ce88
push ebx
push ebx
push str.LastScriptDir
push dword [ebp - 8]
mov edi, 0x208
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x43d090
push ebx
push ebx
push str.LastExeDir
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x43d298
push ebx
push ebx
push str.LastIconDir
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov edi, 0x43d4a0
push edi
push ebx
push ebx
push str.LastIcon
push dword [ebp - 8]
call esi
cmp word [0x43d4a0], bx
je 0x4048d1
mov ecx, edi
call fcn.0040e9a2
cmp eax, 0xffffffff
jne 0x4048d1
cmp dword [0x43e5ec], 1
jg 0x4048c9
push 0xa03b
mov ecx, 0x43ce50
call fcn.004040a5
xor eax, eax
mov word [0x43d4a0], ax
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x43d6a8
push ebx
push ebx
push str.LastCompression
push dword [ebp - 8]
call esi
cmp dword [0x43d6a8], edi
jbe 0x4048fe
mov dword [0x43d6a8], 3
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x43d6ac
push ebx
push ebx
push str.UseUPX
push dword [ebp - 8]
call esi
xor eax, eax
inc eax
cmp dword [0x43d6ac], eax
jbe 0x404926
mov dword [0x43d6ac], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret