joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415272
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x5a2f28]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4152b2
cmp byte [ebx], 0xa
jne 0x4152b2
or byte [edi + eax + 0x28], 4
jmp 0x4152b7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4153b6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x415399
inc eax
cmp dl, 0xd
je 0x4152e3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x415309
cmp eax, ecx
jae 0x415317
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4152cb
jmp 0x4153b6
push 0
lea eax, [ebp - 0x10]
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 0x415394
cmp dword [ebp - 0x10], 0
je 0x415394
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5a2f28]
test byte [eax + edi + 0x28], 0x48
je 0x41536e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415359
mov byte [esi], dl
jmp 0x41536a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5a2f28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4153b6
cmp byte [ebp - 1], 0xa
jne 0x41537d
cmp esi, ebx
jne 0x41537d
mov byte [esi], 0xa
jmp 0x4153b5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415df8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4153b6
mov byte [esi], 0xd
jmp 0x4153b5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5a2f28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4153b3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4153b6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4153bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5a2f28]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415405
cmp word [ebx], dx
jne 0x415405
or byte [eax + edi + 0x28], 4
jmp 0x41540a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41556d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41554d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41544b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415481
cmp eax, edx
jae 0x41548f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x415426
jmp 0x41556d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415548
cmp dword [ebp - 0x18], 0
je 0x415548
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5a2f28]
test byte [eax + edi + 0x28], 0x48
je 0x41551e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4154e2
mov word [esi], cx
jmp 0x415519
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5a2f28]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5a2f28]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5a2f28]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41556d
pop eax
cmp word [ebp - 4], ax
jne 0x41552e
cmp esi, ebx
jne 0x41552e
mov word [esi], ax
jmp 0x41556a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415df8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41556d
push 0xd
pop eax
jmp 0x415529
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5a2f28]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x415567
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41556d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418831
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42b080]
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 0x41887c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004189cc
test al, al
jne 0x418876
sub edx, 2
cmp edx, edi
jne 0x41885c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41889e
lea eax, [edi + 2]
cmp edx, eax
je 0x41889e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041877d
add esp, 0x10
jmp 0x418998
push esi
lea ecx, [ebp - 0x255]
call fcn.004189cc
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 0x4188e1
push dword [ebp - 0x25c]
jmp 0x41888e
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 0x41891e
cmp word [ebp - 0x226], 0
je 0x41893f
cmp word [ebp - 0x226], ax
jne 0x41891e
cmp word [ebp - 0x224], 0
je 0x41893f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041877d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41898b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4188f8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x418973
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x418998
push 0x4185ad
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041db50
add esp, 0x10
jmp 0x418968
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.004081b6
leave
ret
Function at 0x4192ae
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 0x41934b
push ebx
push esi
call fcn.00419277
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.00418208
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4192f8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41934a
push edi
push eax
call fcn.00415e56
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419318
call fcn.00413ca1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419349
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418208
add esp, 0x20
test eax, eax
jne 0x419337
push edi
call fcn.00413ca1
jmp 0x41933f
push ebx
call fcn.00413ca1
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 0x41bb6b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412b9f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41bbda
cmp esi, dword [ebp - 4]
je 0x41bbd5
cmp dword [ebp + 0xc], 0
je 0x41bbd5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41bbb2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041b6bd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41bbdc
xor eax, eax
inc eax
jmp 0x41bbdc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41bc41
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00412b9f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00412b9f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41bcb8
cmp word [ecx], dx
je 0x41bcb8
mov eax, dword [0x424a64]
push edi
dec eax
push eax
push 0x424950
call fcn.0041bbe0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41bd2b
cmp word [eax], dx
je 0x41bd2b
mov eax, dword [edi]
test eax, eax
je 0x41bcdc
cmp word [eax], dx
je 0x41bcdc
lea eax, [ebp - 0x10]
push eax
call fcn.0041b5c3
jmp 0x41bce5
lea eax, [ebp - 0x10]
push eax
call fcn.0041b65e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41bd55
mov eax, dword [0x42494c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x424640
call fcn.0041bbe0
add esp, 0xc
test al, al
je 0x41bd55
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41bd20
cmp word [eax], di
je 0x41bd20
lea eax, [ebp - 0x10]
push eax
call fcn.0041b5c3
pop ecx
jmp 0x41bd57
lea eax, [ebp - 0x10]
push eax
call fcn.0041b65e
jmp 0x41bd1d
mov eax, dword [edi]
test eax, eax
je 0x41bd42
cmp word [eax], dx
je 0x41bd42
lea eax, [ebp - 0x10]
push eax
call fcn.0041b578
pop ecx
jmp 0x41bd55
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41be20
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041ba65
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41be20
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41be20
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41be20
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41bdad
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004148b3
test ebx, ebx
je 0x41be1b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004148b3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41be20
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41be20
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041e252
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41be22
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004081b6
leave
ret
Function at 0x41e6af
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041e62b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41e81e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41e81e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41e7d3
jg 0x41e70b
test eax, eax
je 0x41e7c9
push 1
push 0x1000
call fcn.0041421f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41e72e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41e7c0
push 0x8000
push ebx
call fcn.004100a3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41e757
jg 0x41e752
cmp ecx, 0x1000
jb 0x41e757
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00413a85
add esp, 0x10
cmp eax, 0xffffffff
je 0x41e79c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41e752
jl 0x41e783
test ecx, ecx
jne 0x41e744
push dword [ebp - 0xc]
push ebx
call fcn.004100a3
push esi
call fcn.00413ca1
add esp, 0xc
xor ebx, ebx
jmp 0x41e82c
cmp byte [edi + 0x24], 0
je 0x41e7b3
cmp dword [edi + 0x20], 5
jne 0x41e7b3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41e7be
mov ebx, dword [edi + 0x18]
jmp 0x41e7c0
xor ebx, ebx
push esi
call fcn.00413ca1
pop ecx
jmp 0x41e82c
test ecx, ecx
jg 0x41e795
jl 0x41e7d3
test eax, eax
jae 0x41e795
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415df8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41e7f3
cmp byte [edi + 0x1c], 0
je 0x41e795
jmp 0x41e824
push ebx
call fcn.00419b3c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41e795
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41e82c
cmp byte [edi + 0x1c], 0
je 0x41e829
mov ebx, dword [edi + 0x18]
jmp 0x41e82c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00415df8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41fb20
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
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
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x410b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x410bac
mov dword [eax], ecx
jmp 0x410bae
mov eax, ecx
push ecx
push ecx
push esi
push 0x410c20
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
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 0x1005f21f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1005f22e
pop dword [ebp - 0x18]
mov eax, 0x1005f22e
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x421e0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x5cd3a38f
add ecx, 0xa32ca0a7
mov edi, eax
mov esi, 0xb4f39b28
sub esi, 0xa4db2928
add esi, dword [ebp - 0x18]
mov ebx, 0x466a48ba
add dword [ebp - 4], ebx
mov edx, dword [esi]
add dword [ebp - 0xc], ebx
xor edx, ebx
sub dword [ebp - 0x10], 0xbfd59b5d
mov dword [edi], edx
xor dword [ebp - 0x10], 0x838326d2
add edi, 4
add esi, 4
loop 0x1005f27d
add eax, 0x3bd90da2
add eax, 0xc427f609
xor ebx, ebx
add ebx, eax
add eax, 0x286082ef
sub eax, 0x286082ea
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x10071ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x10071f6b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x10071f22
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x10071f22
cmp esi, ebx
jge 0x10071f22
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10071f65
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10071f65
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783dc]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783dc]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x10071f7d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x100721a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x100721c8
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x100721e2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1005f21f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.100762d0
leave
ret 4

Function at 0x100723b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x100723e6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10072445
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1005f21f
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1005f21f
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1005f21f
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100762d0
leave
ret 0x10
Function at 0x10072460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007248c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x100724bd
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x100724bb
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1005f21f
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x100724bd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100762d0
leave
ret 8
Function at 0x4167a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432070]
jne 0x4167aa
repz ret
jmp fcn.00418edb

Function at 0x422435
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041b4f3
and dword [ebp - 4], 0
cmp dword [0x433ea0], 0
mov ebx, eax
jne 0x4224e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422597
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422597
push eax
call fcn.0041b481
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433ea0], eax
call esi
push eax
call fcn.0041b481
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433ea4], eax
call esi
push eax
call fcn.0041b481
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433ea8], eax
call esi
push eax
call fcn.0041b481
pop ecx
mov dword [0x433eb0], eax
test eax, eax
je 0x4224e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b481
pop ecx
mov dword [0x433eac], eax
mov eax, dword [0x433eac]
cmp eax, ebx
je 0x42253e
cmp dword [0x433eb0], ebx
je 0x42253e
push eax
call fcn.0041b4fc
push dword [0x433eb0]
mov esi, eax
call fcn.0041b4fc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42253e
test edi, edi
je 0x42253e
call esi
test eax, eax
je 0x422535
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422535
test byte [ebp - 0xc], 1
jne 0x42253e
or dword [ebp + 0x10], 0x200000
jmp 0x422577
mov eax, dword [0x433ea4]
cmp eax, ebx
je 0x422577
push eax
call fcn.0041b4fc
pop ecx
test eax, eax
je 0x422577
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422577
mov eax, dword [0x433ea8]
cmp eax, ebx
je 0x422577
push eax
call fcn.0041b4fc
pop ecx
test eax, eax
je 0x422577
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433ea0]
call fcn.0041b4fc
pop ecx
test eax, eax
je 0x422597
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422599
xor eax, eax
pop edi
pop esi
pop ebx
leave
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 0x4016c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], str.VirtualProtect
push 0x6b
call dword [sym.imp.KERNEL32.dll_SetUserGeoID]
mov dword [ebp - 0x10], str.kernel32.dll
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x533f00], eax
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x533f00]
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret