joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488d04
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, ecx
mov ebx, edx
test eax, eax
je 0x488d29
mov ecx, dword [eax]
push 3
push dword [edi + 8]
push 1
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x488eae
cmp byte [edi + 1], 0
je 0x488e32
mov al, byte [esi]
shr al, 3
test al, 1
je 0x488d46
mov eax, 0x80004001
jmp 0x488eae
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x60]
xor edx, edx
add ecx, dword [eax + 0x38]
adc edx, dword [eax + 0x3c]
mov eax, dword [ebx + 0x10]
add ecx, dword [ebx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
adc edx, dword [ebx + 0x44]
mov dword [ebp - 0xc], eax
lea eax, [edi + 0x20]
mov dword [ebp - 0x18], ecx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], edx
call fcn.00465135
movzx eax, byte [edi + 4]
push eax
mov ecx, esi
call fcn.00487ae2
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x74], eax
mov al, byte [edi + 3]
lea ecx, [esi + 0x48]
mov byte [esi + 0x78], al
call fcn.00488b70
lea ecx, [esi + 0x2c]
call fcn.00488b70
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x44], eax
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x2c]
call fcn.00467b1f
movzx eax, al
push eax
push dword [esi + 0x14]
mov ecx, edi
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 0x24]
call fcn.0048d3e8
push esi
mov ecx, edi
call fcn.0048d65e
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x80]
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.00487ea1
add esp, 0xc
test eax, eax
jne 0x488eae
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
add dword [eax], ecx
mov ecx, dword [ebp - 0xc]
adc dword [eax + 4], ecx
jmp 0x488eac
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
add ecx, dword [ebx + 0x40]
push dword [ebp + 0x10]
adc eax, dword [ebx + 0x44]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
movzx eax, word [ebx]
shr ax, 3
xor ecx, ecx
xor edi, edi
and eax, 1
shl eax, 4
add eax, dword [ebx + 0x60]
adc ecx, edi
add eax, dword [ebx + 0x10]
mov edi, dword [ebp + 8]
adc ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0xc], ecx
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.00487ea1
add esp, 0xc
test eax, eax
jne 0x488eae
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
add dword [eax], ecx
push edx
push ecx
adc dword [eax + 4], edx
mov ecx, edi
call fcn.0048d37d
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x48ce05
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x48ce1c
push ebx
call fcn.0047ecf2
pop ecx
test eax, eax
jne 0x48ce5e
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x48ce30
push edi
call fcn.0047ecf2
pop ecx
test eax, eax
jne 0x48ce5d
push ebx
call fcn.0047ecc6
push edi
call fcn.0047ecc6
lea eax, [esi + 0xc]
cmp dword [eax], 0
pop ecx
pop ecx
mov byte [esi + 0x10], 0
je 0x48ce4e
xor eax, eax
jmp 0x48ce5d
push esi
push 0x48cdc7
push eax
call fcn.0047ec60
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x48e7f2
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push esi
call fcn.0047ecf2
pop ecx
test eax, eax
jne 0x48e81c
push eax
lea eax, [esi + 4]
push eax
call fcn.0047ecdd
pop ecx
pop ecx
test eax, eax
jne 0x48e81c
push eax
add esi, 8
push esi
call fcn.0047ecdd
pop ecx
pop ecx
pop esi
ret

Function at 0x48f7c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x48f7d0
pop edi
pop ebx
ret

Function at 0x48f800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov edx, pe_nt_image_headers32
xor eax, eax
push edi
or ecx, edx
add esi, esi
mov edi, edx
and edi, esi
add edi, edx
mov ebx, ecx
shr ebx, 8
add ebx, edi
mov edi, dword [ebp + 8]
movzx edi, word [edi + ebx*2]
mov ebx, ecx
shr ebx, 7
and ebx, 1
neg ebx
shr edi, 4
sar ebx, 4
and ebx, 0x7f
xor edi, ebx
mov ebx, dword [ebp + 0xc]
add eax, dword [ebx + edi*4]
add ecx, ecx
mov edi, ecx
xor edi, esi
not edi
and edx, edi
cmp ecx, 0x10000
jb 0x48f811
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48fac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0xc], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0x14], ecx
xor edx, edx
jmp 0x48fb10
cmp edx, dword [ebp + 0x10]
jae 0x48fc30
mov eax, edx
xor edi, edi
or eax, 8
mov dword [ebp - 4], edi
cmp eax, 1
je 0x48fb59
mov edi, dword [ebp + 0xc]
mov ecx, eax
and eax, 1
shr ecx, 1
lea edi, [ecx + edi*8]
movzx edi, word [ebx + edi*2 + 4]
neg eax
sar eax, 4
shr edi, 4
and eax, 0x7f
xor edi, eax
mov eax, edi
mov edi, dword [ebp - 4]
add edi, dword [esi + eax*4]
mov eax, ecx
mov dword [ebp - 4], edi
cmp eax, 1
jne 0x48fb28
add edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], edi
inc edx
cmp edx, 8
jb 0x48fb10
cmp edx, 0x10
jae 0x48fbda
lea eax, [edx - 8]
mov dword [ebp - 8], eax
cmp edx, dword [ebp + 0x10]
jae 0x48fc30
xor edi, edi
or eax, 8
mov dword [ebp - 4], edi
cmp eax, 1
je 0x48fbc4
lea esp, [esp]
mov edi, dword [ebp + 0xc]
mov ecx, eax
and eax, 1
shr ecx, 1
lea edi, [ecx + edi*8]
movzx edi, word [ebx + edi*2 + 0x104]
neg eax
sar eax, 4
shr edi, 4
and eax, 0x7f
xor edi, eax
mov eax, edi
mov edi, dword [ebp - 4]
add edi, dword [esi + eax*4]
mov eax, ecx
mov dword [ebp - 4], edi
cmp eax, 1
jne 0x48fb90
add edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [ebp - 8], eax
cmp edx, 0x10
jb 0x48fb73
cmp edx, dword [ebp + 0x10]
jae 0x48fc30
lea eax, [edx - 0x10]
mov dword [ebp - 8], eax
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x48fc1a
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
shr ebx, 4
and eax, 0x7f
xor ebx, eax
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp + 8]
mov eax, ecx
cmp eax, 1
jne 0x48fbf1
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [ebp - 8], eax
cmp edx, dword [ebp + 0x10]
jb 0x48fbe5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [edi + 0x325c8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
lea ebx, [ebx]
xor edx, edx
lea ecx, [edx + 1]
mov dword [ebp - 4], 4
lea esp, [esp]
movzx ebx, word [edi + ecx*2 + 0x32c4c]
mov eax, esi
and eax, 1
mov edi, eax
neg edi
sar edi, 4
and edi, 0x7f
shr ebx, 4
xor ebx, edi
mov edi, dword [ebp + 8]
add edx, dword [edi + ebx*4 + 0x30f34]
add ecx, ecx
shr esi, 1
or ecx, eax
dec dword [ebp - 4]
jne 0x491680
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
inc esi
mov dword [eax], edx
add eax, 4
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp esi, 0x10
jb 0x491670
mov dword [edi + 0x84], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4916e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4d897c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 4
mov dword [ebp - 0x208], edi
movzx ebx, byte [edx + edi + 0x30734]
mov ecx, ebx
mov esi, ebx
and esi, 1
shr ecx, 1
dec ecx
or esi, 2
shl esi, cl
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 1
sub edi, esi
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x491793
jmp 0x491746
mov ebx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
sub ecx, ebx
add ecx, esi
movzx ecx, word [edx + ecx*2 + 0x32b66]
mov eax, edi
and eax, 1
mov ebx, eax
neg ebx
shr ecx, 4
sar ebx, 4
and ebx, 0x7f
xor ecx, ebx
mov ecx, dword [edx + ecx*4 + 0x30f34]
add dword [ebp - 0x20c], ecx
mov ecx, dword [ebp - 0x210]
add ecx, ecx
or ecx, eax
shr edi, 1
dec dword [ebp - 0x214]
mov dword [ebp - 0x210], ecx
jne 0x491740
mov edi, dword [ebp - 0x208]
mov eax, dword [ebp - 0x20c]
mov dword [ebp + edi*4 - 0x204], eax
inc edi
mov dword [ebp - 0x208], edi
cmp edi, 0x80
jb 0x491701
lea esi, [ebp - 0x204]
sub esi, edx
lea ecx, [edx + 0x32968]
lea ebx, [edx + 0x31dd0]
sub esi, 0x31dc8
lea edi, [edx + 0x319c8]
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], 4
jmp 0x491800
xor ecx, ecx
mov dword [ebp - 0x214], ecx
cmp dword [edx + 0x88], ecx
jbe 0x491870
mov eax, ecx
or eax, 0x40
xor esi, esi
cmp eax, 1
je 0x491858
lea esp, [esp]
mov ebx, dword [ebp - 0x208]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebx, 4
xor ebx, eax
add esi, dword [edx + ebx*4 + 0x30f34]
mov eax, ecx
cmp eax, 1
jne 0x491820
mov ebx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x214]
mov dword [edi + ecx*4], esi
inc ecx
mov dword [ebp - 0x214], ecx
cmp ecx, dword [edx + 0x88]
jb 0x491810
mov esi, dword [ebp - 0x210]
mov eax, 0xe
cmp dword [edx + 0x88], eax
jbe 0x491896
lea ecx, [ecx]
mov ecx, eax
shr ecx, 1
sub ecx, 5
shl ecx, 4
add dword [edi + eax*4], ecx
inc eax
cmp eax, dword [edx + 0x88]
jb 0x491880
mov eax, dword [edi]
mov dword [ebx - 8], eax
mov ecx, dword [edi + 4]
mov dword [ebx - 4], ecx
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov ecx, dword [edi + 0xc]
mov dword [ebx + 4], ecx
mov eax, 4
lea ecx, [ebx + 8]
jmp 0x4918c0
movzx ebx, byte [edx + eax + 0x30734]
mov ebx, dword [edi + ebx*4]
add ebx, dword [esi + ecx]
inc eax
mov dword [ecx], ebx
add ecx, 4
cmp eax, 0x80
jb 0x4918c0
mov ebx, dword [ebp - 0x20c]
sub dword [ebp - 0x208], 0xffffff80
add ebx, 0x200
sub esi, 0x200
add edi, 0x100
dec dword [ebp - 0x218]
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
jne 0x491800
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [edx + 0x80], 0
pop ebx
call fcn.00494bb0
mov esp, ebp
pop ebp
ret
Function at 0x4929f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x492a97
lea eax, [esi + 0x30]
push eax
call fcn.0047ed54
add esp, 4
test eax, eax
je 0x492a13
mov eax, 0xc
pop ebp
ret
lea ecx, [esi + 0x14]
push ecx
mov dword [esi + 0x28], 1
call fcn.0047ecf2
add esp, 4
test eax, eax
jne 0x492a0c
lea edx, [esi + 0x18]
push edx
call fcn.0047ecf2
add esp, 4
test eax, eax
jne 0x492a0c
lea eax, [esi + 0x1c]
push eax
call fcn.0047ecf2
add esp, 4
test eax, eax
jne 0x492a0c
push edi
lea ecx, [esi + 0x20]
push edi
push ecx
call fcn.0047ed06
add esp, 0xc
test eax, eax
jne 0x492a0c
push edi
push eax
lea edx, [esi + 0x24]
push edx
call fcn.0047ed06
add esp, 0xc
test eax, eax
jne 0x492a0c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esi + 0x10]
push edx
mov dword [esi + 4], 1
call fcn.0047ec60
add esp, 0xc
test eax, eax
jne 0x492a0c
mov dword [esi], 1
xor eax, eax
pop ebp
ret

Function at 0x493ac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x34], edx
mov byte [eax + 0x1f], dl
mov dword [eax + 0x24], edx
mov dword [eax + 0x30], 0x20
mov dword [eax + 0x48], 4
mov word [eax + 0x1d], 1
lea esi, [eax + 0x60]
lea esp, [esp]
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x493af0
pop esi
pop ebp
ret

Function at 0x494bb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d897c]
jne 0x494bba
repz ret
jmp fcn.0049dfde
Function at 0x4a931e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d897c]
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.0049f0a5
and dword [ebp - 0x14], 0
cmp dword [0x4de718], 0
mov dword [ebp - 0x18], eax
jne 0x4a93d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a9479
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4be104
push ebx
call edi
test eax, eax
je 0x4a9479
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4de718], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4de71c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4de720], eax
call edi
push eax
call esi
mov dword [0x4de728], eax
test eax, eax
je 0x4a93d1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4de724], eax
mov eax, dword [0x4de724]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4a942a
cmp dword [0x4de728], ecx
je 0x4a942a
push eax
call esi
push dword [0x4de728]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a942a
test ebx, ebx
je 0x4a942a
call edi
test eax, eax
je 0x4a9421
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a9421
test byte [ebp - 8], 1
jne 0x4a942a
or dword [ebp + 0x10], 0x200000
jmp 0x4a945d
mov eax, dword [0x4de71c]
cmp eax, dword [ebp - 0x18]
je 0x4a945d
push eax
call esi
test eax, eax
je 0x4a945d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a945d
mov eax, dword [0x4de720]
cmp eax, dword [ebp - 0x18]
je 0x4a945d
push eax
call esi
test eax, eax
je 0x4a945d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4de718]
call esi
test eax, eax
je 0x4a9479
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a947b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00494bb0
leave
ret
Function at 0x1000b1e3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10016fb0
cmp edx, dword [eax]
je 0x1000b205
add eax, 8
inc ecx
cmp eax, 0x10017040
jl 0x1000b1f6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10016fb0]
jne 0x1000b333
mov eax, dword [0x10017ecc]
cmp eax, 1
je 0x1000b30d
test eax, eax
jne 0x1000b236
cmp dword [0x10017ed0], 1
je 0x1000b30d
cmp edx, 0xfc
je 0x1000b333
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x1000b26d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1000c210
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1000b7d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000b2b0
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000b7d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100143e4
push edi
call fcn.1000c810
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1000c210
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1000c220
lea eax, [ebp - 0xa0]
push 0x100143c4
push eax
call fcn.1000c220
push dword [esi + 0x10016fb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.1000c220
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000ec1d
add esp, 0x2c
pop edi
jmp 0x1000b333
lea eax, [ebp + 8]
lea esi, [esi + 0x10016fb4]
push 0
push eax
push dword [esi]
call fcn.1000b7d0
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 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
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 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

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

Function at 0x4324b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23000]
push edi
jmp 0x4324ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4324d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4324c0
mov eax, 1
add ebx, ebx
jne 0x4324e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4324d8
jne 0x4324f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4324d8
xor ecx, ecx
sub eax, 3
jb 0x432508
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43257a
mov ebp, eax
add ebx, ebx
jne 0x432513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x432520
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x432544
inc ecx
add ebx, ebx
jne 0x432530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x432525
jne 0x432541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432525
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x432564
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x432555
jmp 0x4324c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x432564
add edi, ecx
jmp 0x4324c6
pop esi
lea edi, [esi + 0x30000]
mov eax, dword [edi]
or eax, eax
je 0x4325cc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x32fcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x33008]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x432581
mov ecx, edi
jns 0x4325b0
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 + 0x33010]
or eax, eax
je 0x4325c6
mov dword [ebx], eax
add ebx, 4
jmp 0x43259e
call dword [esi + 0x3300c]
mov ebp, dword [esi + 0x33014]
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 0x432600
sub esp, 0xffffff80
jmp 0x403670