joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ae88
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], edx
mov esi, eax
mov ebx, esi
mov ecx, ebx
test ecx, ecx
je 0x45aea1
sub ecx, 4
mov ecx, dword [ecx]
lea eax, [ecx + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, dword [esp]
call fcn.00404de8
mov ecx, ebx
test ecx, ecx
je 0x45aec5
sub ecx, 4
mov ecx, dword [ecx]
lea eax, [ecx + 2]
mov ecx, 3
cdq
idiv ecx
mov edi, eax
test edi, edi
jle 0x45afd6
mov ebx, 1
mov edx, esi
mov eax, edx
test eax, eax
je 0x45aeec
sub eax, 4
mov eax, dword [eax]
lea ecx, [ebx + ebx*2]
cmp eax, ecx
jge 0x45af16
mov eax, edx
test eax, eax
je 0x45aefe
sub eax, 4
mov eax, dword [eax]
mov edx, ebx
dec edx
lea edx, [edx + edx*2]
sub eax, edx
push eax
lea eax, [esi + edx]
lea edx, [esp + 8]
pop ecx
call fcn.00402e8c
jmp 0x45af2d
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
lea eax, [esi + eax]
lea edx, [esp + 4]
mov ecx, 3
call fcn.00402e8c
movzx eax, byte [esp + 4]
mov edx, eax
and dl, 0xfc
movzx edx, dl
shr edx, 2
mov ecx, 0x45b088
movzx edx, byte [ecx + edx]
mov byte [esp + 7], dl
and al, 3
movzx ebp, al
shl ebp, 4
movzx edx, byte [esp + 5]
mov eax, edx
and al, 0xf0
movzx eax, al
shr eax, 4
or ebp, eax
mov eax, 0x45b088
movzx eax, byte [eax + ebp]
mov byte [esp + 8], al
and dl, 0xf
movzx eax, dl
add eax, eax
add eax, eax
movzx edx, byte [esp + 6]
and dl, 0xc0
movzx edx, dl
shr edx, 6
or eax, edx
mov edx, 0x45b088
movzx eax, byte [edx + eax]
mov byte [esp + 9], al
movzx eax, byte [esp + 6]
and al, 0x3f
movzx eax, al
mov edx, 0x45b088
movzx eax, byte [edx + eax]
mov byte [esp + 0xa], al
mov eax, dword [esp]
call fcn.00404bb8
mov edx, ebx
dec edx
add edx, edx
add edx, edx
lea edx, [eax + edx]
lea eax, [esp + 7]
mov ecx, 4
call fcn.00402e8c
inc ebx
dec edi
jne 0x45aedf
mov ebx, esi
mov ecx, ebx
test ecx, ecx
je 0x45afe3
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
dec edx
jne 0x45b038
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x45b006
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esp]
call fcn.00404bb8
mov byte [eax + ebx - 2], 0x3d
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x45b029
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esp]
call fcn.00404bb8
mov byte [eax + ebx - 1], 0x3d
jmp 0x45b075
mov ecx, ebx
test ecx, ecx
je 0x45b043
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
cmp edx, 2
jne 0x45b075
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x45b068
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esp]
call fcn.00404bb8
mov byte [eax + ebx - 1], 0x3d
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45c1a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x45c1ca
inc ecx
xor esi, esi
movzx ebx, byte [eax + esi]
xor bl, byte [edx + esi]
mov edi, dword [ebp - 4]
mov byte [edi + esi], bl
inc esi
dec ecx
jne 0x45c1b9
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x45c8c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
movzx ebx, dl
dec ebx
test ebx, ebx
jl 0x45c914
inc ebx
xor edx, edx
mov ecx, edx
add ecx, ecx
add ecx, ecx
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x4679b8]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x467db8]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x4681b8]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x4685b8]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x45c8ce
pop edi
pop esi
pop ebx
ret
Function at 0x40b200
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call fcn.0042a62b
add esp, 4
mov edi, eax
push dword [ebp + 0x10]
call fcn.0042a62b
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x20], esi
test edi, edi
je 0x40b25b
test esi, esi
je 0x40b25b
push dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
push esi
push edi
push ebx
push dword [ebp + 8]
call eax
or eax, edx
jne 0x40b260
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40b260
mov ebx, 8
mov eax, dword [ebp - 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [eax]
test eax, eax
je 0x40b398
test edi, edi
je 0x40b3a5
test byte [eax + 0x18], 8
je 0x40b2fd
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 0
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40b2fd
push eax
call fcn.0041408b
mov esi, eax
add esp, 4
test esi, esi
je 0x40b2fd
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40b2f4
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], 0x5c
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40b2e0
mov dword [ebp - 8], eax
jmp 0x40b2f4
mov eax, dword [ebp - 8]
xor edx, edx
add edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
adc ecx, 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
push esi
call fcn.00413f7f
add esp, 4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 0x18]
mov esi, str._unknown_
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040b3f0
test eax, eax
je case.0x40b329.7
mov eax, dword [ebp - 0x250]
cmp eax, 9
ja case.0x40b329.7
jmp dword [eax*4 + 0x40b3c0]
mov esi, str._nosymbols_
jmp case.0x40b329.7
mov esi, str.COFF
jmp case.0x40b329.7
mov esi, 0x437fb4
jmp case.0x40b329.7
mov esi, 0x437fb8
jmp case.0x40b329.7
mov esi, str._exported_
jmp case.0x40b329.7
mov esi, str._deferred_
jmp case.0x40b329.7
mov esi, 0x437fd4
jmp case.0x40b329.7
mov esi, str.Virtual
jmp case.0x40b329.7
mov esi, 0x437fe0
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x12c]
push dword [ebp - 0x18]
push edx
mov ecx, dword [eax]
push esi
push ebx
push dword [ebp + 0x1c]
mov eax, dword [ecx]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [eax + 8]
mov esi, dword [ebp - 0x20]
test edi, edi
je 0x40b3a5
push edi
call fcn.00413f7f
add esp, 4
test esi, esi
je 0x40b3b2
push esi
call fcn.00413f7f
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41e70d
Capabilities:
Set environment variable

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

Function at 0x40fbdc
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0xff00
mov ebx, ecx
and ebx, esi
mov eax, ecx
shl eax, 0x10
add ebx, eax
mov eax, ecx
shl ebx, 8
shr eax, 8
and eax, esi
shr ecx, 0x18
mov esi, dword [ebp + 8]
add ebx, eax
add ebx, ecx
not ebx
push edi
test esi, esi
je 0x40fc27
test dl, 3
je 0x40fc27
movzx eax, byte [edx]
mov ecx, ebx
shr ecx, 0x18
xor ecx, eax
shl ebx, 8
xor ebx, dword [ecx*4 + 0x467d20]
inc edx
sub esi, 1
jne 0x40fc08
lea edi, [edx - 4]
cmp esi, 0x20
jb 0x40fe02
mov eax, esi
shr eax, 5
mov dword [ebp + 8], eax
xor ebx, dword [edi + 4]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x468520]
xor edx, dword [eax*4 + 0x468120]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x468920]
movzx eax, bl
xor edx, dword [eax*4 + 0x467d20]
xor edx, dword [edi + 8]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x468520]
xor ebx, dword [eax*4 + 0x468120]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x468920]
movzx eax, dl
xor ebx, dword [eax*4 + 0x467d20]
xor ebx, dword [edi + 0xc]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x468520]
xor edx, dword [eax*4 + 0x468120]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x468920]
movzx eax, bl
xor edx, dword [eax*4 + 0x467d20]
xor edx, dword [edi + 0x10]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x468520]
xor ebx, dword [eax*4 + 0x468120]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x468920]
movzx eax, dl
xor ebx, dword [eax*4 + 0x467d20]
xor ebx, dword [edi + 0x14]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x468520]
xor edx, dword [eax*4 + 0x468120]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x468920]
movzx eax, bl
xor edx, dword [eax*4 + 0x467d20]
xor edx, dword [edi + 0x18]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
call 0xc0f70c69
mov ebx, dword [ecx*4 + 0x468520]
xor ebx, dword [eax*4 + 0x468120]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x468920]
sub esi, 0x20
movzx eax, dl
xor ebx, dword [eax*4 + 0x467d20]
xor ebx, dword [edi + 0x1c]
add edi, 0x20
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x468520]
xor edx, dword [eax*4 + 0x468120]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x468920]
movzx eax, bl
xor edx, dword [eax*4 + 0x467d20]
xor edx, dword [edi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
ret 0xe8c1
or byte [edi], cl
mov dh, 0xc0
mov ebx, dword [ecx*4 + 0x468520]
xor ebx, dword [eax*4 + 0x468120]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x468920]
movzx eax, dl
xor ebx, dword [eax*4 + 0x467d20]
sub dword [ebp + 8], 1
jne 0x40fc3b
cmp esi, 4
jb 0x40fe4f
mov edx, esi
shr edx, 2
Function at 0x2fe4300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02fe438f
jae 0x2fe430e
xor ecx, ecx
call fcn.02fe438f
jae 0x2fe433d
xor eax, eax
call fcn.02fe438f
jae 0x2fe434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02fe438f
adc al, al
jae 0x2fe432f
jne 0x2fe4379
stosb byte es:[edi], al
jmp 0x2fe4311
call fcn.02fe439b
sub ecx, ebx
jne 0x2fe4356
call fcn.02fe4399
jmp 0x2fe4375
lodsb al, byte [esi]
shr eax, 1
je 0x2fe4383
adc ecx, ecx
jmp 0x2fe4372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02fe4399
cmp eax, 0x7d00
jae 0x2fe4372
cmp ah, 5
jae 0x2fe4373
cmp eax, 0x7f
ja 0x2fe4374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2fe4311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

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 0x401000
Capabilities:
Get networking parameters

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esi + 4]
mov dword [esi], 0x403158
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor edi, edi
push eax
push edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x104], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x10c], edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ecx
push 0x40
call ebx
cmp eax, edi
mov dword [esi + 0x104], eax
je 0x401077
lea edx, [esp + 0xc]
push edx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x401077
mov eax, 0xcccccccd
mul dword [esp + 0xc]
shr edx, 9
mov dword [esi + 0x10c], edx
lea eax, [esp + 0x10]
mov dword [esi + 0x108], edi
push eax
push edi
mov dword [esp + 0x18], edi
call sub.iphlpapi.dll_GetNetworkParams
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call ebx
lea edx, [esp + 0x10]
mov dword [esi + 0x108], eax
push edx
push eax
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x4010c1
mov eax, dword [esi + 0x108]
cmp eax, edi
je 0x4010bb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x108], edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x401580
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
xor ebx, ebx
push esi
push ebx
push 0x25
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0xb]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4015c5
lea edx, [esp + 0xc]
push 0x404044
push edx
call esi
lea eax, [esp + 0xc]
push str.DisableInfo.ini
push eax
call esi
push 0
push 0
push 3
push 0
push 3
lea ecx, [esp + 0x20]
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401664
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x40
je 0x401615
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
push 0
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ebx, 1
mov ecx, 0x40
mov edx, 0x20
pop edi
xor byte [eax], cl
inc eax
dec ecx
cmp ecx, 0x20
ja 0x401647
mov ecx, 1
cmp edx, 0x40
jae 0x401664
xor byte [eax], cl
inc edx
inc eax
inc ecx
cmp ecx, 0x40
jbe 0x401655
mov eax, ebx
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x401670
Capabilities:
Encode data using xor
Get common file path
Write file on windows

Disassembly:
sub esp, 0x160
lea eax, [esp + 0x5c]
push ebx
xor ebx, ebx
push esi
push ebx
push 0x25
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x63]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4016b5
lea edx, [esp + 0x64]
push 0x404044
push edx
call esi
push edi
lea eax, [esp + 0x68]
push str.DisableInfo.ini
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00401580
add esp, 4
lea edx, [esp + 0x68]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop edi
cmp esi, 0xffffffff
je 0x401889
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
and ecx, 0xffff
mov eax, dword [esp + 0x1a]
mov dword [esp + 8], ecx
and edx, 0xffff
fild dword [esp + 8]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x16]
and eax, 0xffff
mov edx, dword [esp + 0x18]
fstp qword [esp + 0x40]
fild dword [esp + 8]
mov dword [esp + 8], eax
and ecx, 0xffff
mov eax, dword [esp + 0x16c]
and edx, 0xffff
fstp qword [esp + 0x50]
fild dword [esp + 8]
mov dword [esp + 8], ecx
cmp eax, 1
fstp qword [esp + 0x28]
fild dword [esp + 8]
mov dword [esp + 8], edx
fstp qword [esp + 0x38]
fild dword [esp + 8]
fstp qword [esp + 0x20]
jne 0x401798
mov eax, dword [esp + 0xc]
and eax, 0xffff
mov dword [esp + 0x48], eax
jmp 0x40182c
cmp eax, 0xa
jne 0x4017ad
mov ecx, dword [esp + 0x12]
and ecx, 0xffff
mov dword [esp + 0x30], ecx
jmp 0x40182c
cmp eax, 0xb
jne 0x4017cf
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x12]
and edx, 0xffff
and eax, 0xffff
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], eax
jmp 0x40182c
cmp eax, 0xc
jne 0x4017e8
mov ecx, dword [esp + 0xe]
and ecx, 0xffff
mov dword [esp + 8], ecx
fild dword [esp + 8]
jmp 0x401828
cmp eax, 2
jne 0x4017fd
mov edx, dword [esp + 0x12]
and edx, 0xffff
mov dword [esp + 0x48], edx
jmp 0x40182c
cmp eax, 0x14
jne 0x401811
mov eax, dword [esp + 0xe]
and eax, 0xffff
mov dword [esp + 0x30], eax
jmp 0x40182c
cmp eax, 0x16
jne 0x40182c
mov ecx, dword [esp + 0xc]
and ecx, 0xffff
mov dword [esp + 8], ecx
fild dword [esp + 8]
fstp qword [esp + 0x58]
lea eax, [esp + 0x20]
mov ecx, 0x40
mov edx, 0x20
mov bl, byte [eax]
xor bl, cl
mov byte [eax], bl
inc eax
dec ecx
cmp ecx, 0x20
ja 0x40183a
mov ecx, 1
cmp edx, 0x40
jae 0x40185f
mov bl, byte [eax]
xor bl, cl
inc edx
mov byte [eax], bl
inc eax
inc ecx
cmp ecx, 0x40
jbe 0x40184c
lea edx, [esp + 0x60]
push 0
push edx
lea eax, [esp + 0x28]
push 0x40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
add esp, 0x160
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x160
ret
Function at 0x4018a0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
sub esp, 0x160
lea eax, [esp + 0x5c]
push esi
push edi
xor esi, esi
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x64]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x4018d3
mov byte [eax + 1], 0
lea edx, [esp + 0x64]
push str.DisableInfo.ini
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
call fcn.00401580
add esp, 4
lea ecx, [esp + 0x64]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401aaa
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
and eax, 0xffff
mov edx, dword [esp + 0x1a]
mov dword [esp + 8], eax
and ecx, 0xffff
fild dword [esp + 8]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x16]
and edx, 0xffff
mov ecx, dword [esp + 0x18]
fstp qword [esp + 0x40]
fild dword [esp + 8]
mov dword [esp + 8], edx
and eax, 0xffff
and ecx, 0xffff
fstp qword [esp + 0x50]
fild dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x16c]
cmp eax, 1
fstp qword [esp + 0x28]
fild dword [esp + 8]
mov dword [esp + 8], ecx
fstp qword [esp + 0x38]
fild dword [esp + 8]
fstp qword [esp + 0x20]
jne 0x4019b8
mov edx, dword [esp + 0xc]
and edx, 0xffff
mov dword [esp + 0x48], edx
jmp 0x401a4b
cmp eax, 0xa
jne 0x4019cc
mov eax, dword [esp + 0x12]
and eax, 0xffff
mov dword [esp + 0x30], eax
jmp 0x401a4b
cmp eax, 0xb
jne 0x4019ef
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x12]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], edx
jmp 0x401a4b
cmp eax, 0xc
jne 0x401a07
mov eax, dword [esp + 0xe]
and eax, 0xffff
mov dword [esp + 8], eax
fild dword [esp + 8]
jmp 0x401a47
cmp eax, 2
jne 0x401a1c
mov ecx, dword [esp + 0x12]
and ecx, 0xffff
mov dword [esp + 0x48], ecx
jmp 0x401a4b
cmp eax, 0x14
jne 0x401a31
mov edx, dword [esp + 0xe]
and edx, 0xffff
mov dword [esp + 0x30], edx
jmp 0x401a4b
cmp eax, 0x16
jne 0x401a4b
mov eax, dword [esp + 0xc]
and eax, 0xffff
mov dword [esp + 8], eax
fild dword [esp + 8]
fstp qword [esp + 0x58]
push ebx
lea eax, [esp + 0x24]
mov ecx, 0x40
mov edx, 0x20
mov bl, byte [eax]
xor bl, cl
mov byte [eax], bl
inc eax
dec ecx
cmp ecx, 0x20
ja 0x401a5a
mov ecx, 1
cmp edx, 0x40
jae 0x401a7f
mov bl, byte [eax]
xor bl, cl
inc edx
mov byte [eax], bl
inc eax
inc ecx
cmp ecx, 0x40
jbe 0x401a6c
lea ecx, [esp + 0x64]
push 0
push ecx
lea edx, [esp + 0x2c]
push 0x40
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x160
ret
mov eax, esi
pop edi
pop esi
add esp, 0x160
ret
Function at 0x401ac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x401af0
mov byte [eax + 1], 0
push esi
lea edx, [esp + 8]
push str.MacIPList.csv
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 2
push 0
push 3
lea eax, [esp + 0x1c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b47
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x108
ret

Function at 0x401b50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x401b80
mov byte [eax + 1], 0
push esi
lea edx, [esp + 8]
push str.UserProc.ini
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 2
push 0
push 3
lea eax, [esp + 0x1c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401bd7
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x108
ret

Function at 0x401be0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov al, byte [esp + 0x18]
cmp al, 2
jb 0x401c47
push 0
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
cmp al, 1
push 0
jb 0x401c59
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret