joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x40102e
jmp 0x4010be
mov edx, dword [ebp - 8]
push edx
call fcn.00404ad4
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401045
jmp 0x4010be
push 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x401071
mov eax, dword [ebp - 4]
push eax
call fcn.00404ab9
add esp, 4
jmp 0x4010be
push 0x41153c
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00404537
add esp, 0xc
test eax, eax
jne 0x4010b2
cmp dword [ebp - 0xc], 0
je 0x4010b2
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.00404a7f
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040478a
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404ab9
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4010d0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x418040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
push 0
push 0
push 0
push 1
push str.Downloader
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x4011ea
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
je 0x4011dc
push 0x41154c
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.00404537
add esp, 0xc
test eax, eax
jne 0x4011ce
cmp dword [ebp - 0x408], 0
je 0x4011ce
lea ecx, [ebp - 0x414]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4011b5
cmp dword [ebp - 0x414], 0
jbe 0x4011b5
mov ecx, dword [ebp - 0x408]
push ecx
mov edx, dword [ebp - 0x414]
push edx
push 1
lea eax, [ebp - 0x404]
push eax
call fcn.00404a7f
add esp, 0x10
jmp 0x401167
mov ecx, dword [ebp - 0x408]
push ecx
call fcn.0040478a
add esp, 4
mov dword [ebp - 0x418], 1
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004014b1
mov esp, ebp
pop ebp
ret

Function at 0x401200
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
push 3
mov eax, dword [ebp + 8]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
pop ebp
ret
Function at 0x401ce3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d22
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d22
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d22
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d22
cmp dword [ecx + 0x74], 0xe
jbe 0x401d22
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4099df
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 0x409a7c
push ebx
push esi
call fcn.004099a8
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.0040993c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409a29
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409a7b
push edi
push eax
call fcn.0040842c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409a49
call fcn.00406a29
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409a7a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040993c
add esp, 0x20
test eax, eax
jne 0x409a68
push edi
call fcn.00406a29
jmp 0x409a70
push ebx
call fcn.00406a29
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 0x40aed3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413438
push 0x413430
push str.FlsAlloc
push 0x1f
call fcn.0040ad92
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40af07
push dword [ebp + 8]
mov ecx, esi
call dword [0x41115c]
call esi
jmp 0x40af0d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40af51
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413448
push 0x413440
push str.FlsGetValue
push 0x21
call fcn.0040ad92
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40af88
push dword [ebp + 8]
mov ecx, esi
call dword [0x41115c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40af90
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413450
push 0x413448
push str.FlsSetValue
push 0x22
call fcn.0040ad92
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40afca
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41115c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40cd1e
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 + 0x419098]
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 0x40cd5e
cmp byte [ebx], 0xa
jne 0x40cd5e
or byte [edi + eax + 0x28], 4
jmp 0x40cd63
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 0x40ce62
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40ce45
inc eax
cmp dl, 0xd
je 0x40cd8f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40cdb5
cmp eax, ecx
jae 0x40cdc3
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 0x40cd77
jmp 0x40ce62
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 0x40ce40
cmp dword [ebp - 0x10], 0
je 0x40ce40
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x419098]
test byte [eax + edi + 0x28], 0x48
je 0x40ce1a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40ce05
mov byte [esi], dl
jmp 0x40ce16
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x419098]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40ce62
cmp byte [ebp - 1], 0xa
jne 0x40ce29
cmp esi, ebx
jne 0x40ce29
mov byte [esi], 0xa
jmp 0x40ce61
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040cb17
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40ce62
mov byte [esi], 0xd
jmp 0x40ce61
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x419098]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40ce5f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40ce62
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40ce6c
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 + 0x419098]
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 0x40ceb2
cmp word [ebx], dx
jne 0x40ceb2
or byte [eax + edi + 0x28], 4
jmp 0x40ceb7
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 0x40d01a
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 0x40cffa
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40cef8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40cf2e
cmp eax, edx
jae 0x40cf3c
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 0x40ced3
jmp 0x40d01a
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 0x40cff5
cmp dword [ebp - 0x18], 0
je 0x40cff5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x419098]
test byte [eax + edi + 0x28], 0x48
je 0x40cfcb
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 0x40cf8f
mov word [esi], cx
jmp 0x40cfc6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x419098]
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 + 0x419098]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x419098]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40d01a
pop eax
cmp word [ebp - 4], ax
jne 0x40cfdb
cmp esi, ebx
jne 0x40cfdb
mov word [esi], ax
jmp 0x40d017
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040cb17
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40d01a
push 0xd
pop eax
jmp 0x40cfd6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x419098]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40d014
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40d01a
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 0x40e385
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.0040e301
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x40e4f4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x40e4f4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x40e4a9
jg 0x40e3e1
test eax, eax
je 0x40e49f
push 1
push 0x1000
call fcn.0040847a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40e404
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x40e496
push 0x8000
push ebx
call fcn.004057db
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x40e42d
jg 0x40e428
cmp ecx, 0x1000
jb 0x40e42d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00407e91
add esp, 0x10
cmp eax, 0xffffffff
je 0x40e472
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 0x40e428
jl 0x40e459
test ecx, ecx
jne 0x40e41a
push dword [ebp - 0xc]
push ebx
call fcn.004057db
push esi
call fcn.00406a29
add esp, 0xc
xor ebx, ebx
jmp 0x40e502
cmp byte [edi + 0x24], 0
je 0x40e489
cmp dword [edi + 0x20], 5
jne 0x40e489
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x40e494
mov ebx, dword [edi + 0x18]
jmp 0x40e496
xor ebx, ebx
push esi
call fcn.00406a29
pop ecx
jmp 0x40e502
test ecx, ecx
jg 0x40e46b
jl 0x40e4a9
test eax, eax
jae 0x40e46b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040cb17
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40e4c9
cmp byte [edi + 0x1c], 0
je 0x40e46b
jmp 0x40e4fa
push ebx
call fcn.0040a2c2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40e46b
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 0x40e502
cmp byte [edi + 0x1c], 0
je 0x40e4ff
mov ebx, dword [edi + 0x18]
jmp 0x40e502
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040cb17
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4107d0
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6bee1de2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x69a27ea4
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
popal
nop
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x5252225f
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x7cbd74c3
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4027a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4788d5
push eax
mov eax, 0x1510
mov dword fs:[0], esp
call fcn.00458680
mov al, byte [0x494b70]
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x11]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
push 0x494f68
lea ecx, [esp + 0x11c]
push 0x400
push ecx
push str.English
push 0x48e194
push str.System
mov dword [esp + 0x24], 0
call esi
lea edx, [esp + 0x118]
lea eax, [esp + 0x10]
push edx
push 0x494e60
push str._sLanguage_s.ini
push eax
call fcn.004585a3
mov ecx, dword [0x492aec]
add esp, 0x10
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x152c]
mov edi, 1
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1524], edi
call fcn.0046effd
push 0x48e174
push 0x48e170
lea ecx, [esp + 0x10]
call fcn.004685e6
push 0x48e16c
push 0x48e168
lea ecx, [esp + 0x10]
call fcn.004685e6
lea eax, [esp + 0x10]
lea ecx, [esp + 0x518]
push eax
mov eax, dword [esp + 0xc]
push 0x1000
push ecx
push eax
push eax
push str.String
call esi
mov al, byte [esp + 0x518]
test al, al
je 0x4028af
lea edx, [esp + 0x518]
lea ecx, [esp + 8]
push edx
call fcn.0046ec3b
push 0x48e170
push 0x48e174
lea ecx, [esp + 0x10]
call fcn.004685e6
push 0x48e168
push 0x48e16c
lea ecx, [esp + 0x10]
call fcn.004685e6
mov esi, dword [esp + 0x1528]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0046e827
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x1520], 0
call fcn.0046eab2
mov ecx, dword [esp + 0x1518]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x151c
ret
Function at 0x40af70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
lea eax, [esp]
push 0x494f68
push 0x400
push eax
push str.English
push 0x48e194
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x404]
lea ecx, [esp]
push ecx
push 0x494e60
push str._sLanguage_s.ini
push edx
call fcn.004585a3
add esp, 0x410
ret
Function at 0x40fc10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push 1
push esi
push ecx
push edx
mov byte [ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fcbd
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
push eax
push esi
push esi
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fcac
mov edx, dword [esp + 0x1c]
push ebx
push edx
call fcn.0046efc9
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push ebx
push esi
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fca2
mov eax, dword [esp + 0x20]
mov esi, ebx
mov ecx, eax
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
mov esi, 1
push ebx
call fcn.0046eff2
add esp, 4
pop ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret
mov eax, esi
pop esi
pop ebp
ret
Function at 0x412f30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 3
push esi
jl 0x412fc4
mov eax, 0xaaaaaaab
push edi
mul ebp
mov edi, edx
mov esi, dword [esp + 0x14]
shr edi, 1
lea eax, [edi*4]
sub eax, edi
neg eax
add ebp, eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [esi]
add esi, 3
shr ecx, 2
inc eax
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], dl
mov cl, byte [esi - 3]
xor edx, edx
and ecx, 3
mov dl, byte [esi - 2]
shl ecx, 4
shr edx, 4
or ecx, edx
inc eax
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], cl
mov dl, byte [esi - 2]
xor ecx, ecx
and edx, 0xf
mov cl, byte [esi - 1]
shl edx, 2
shr ecx, 6
or edx, ecx
inc eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], dl
mov cl, byte [esi - 1]
and ecx, 0x3f
inc eax
dec edi
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], dl
jne 0x412f60
pop edi
jmp 0x412fcc
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test ebp, ebp
jle 0x413040
xor ecx, ecx
mov cl, byte [esi]
shr ecx, 2
inc eax
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], dl
mov cl, byte [esi]
and cl, 3
shl cl, 4
cmp ebp, 1
mov byte [esp + 0x10], cl
jle 0x412ffe
mov dl, byte [esi + 1]
shr dl, 4
or cl, dl
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
inc eax
cmp ebp, 2
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], dl
jge 0x413025
mov cl, 0x3d
pop esi
mov byte [eax], cl
inc eax
pop ebp
mov byte [eax], cl
mov byte [eax + 1], 0
ret
mov cl, byte [esi + 1]
pop esi
and ecx, 0xf
inc eax
pop ebp
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], cl
mov byte [eax], 0x3d
mov byte [eax + 1], 0
ret
pop esi
mov byte [eax], 0
pop ebp
ret
Function at 0x417150
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x479e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90c
mov al, byte [0x494b70]
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xd]
push 0x494f68
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x518]
push 0x400
push ecx
push str.English
push 0x48e194
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x514]
lea eax, [esp + 0xc]
push edx
push 0x494e60
push str._sLanguage_s.ini
push eax
call fcn.004585a3
mov ecx, dword [0x492aec]
add esp, 0x10
mov dword [esp + 8], ecx
mov edi, dword [esp + 0x924]
xor esi, esi
mov dword [esp + 0x91c], esi
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, esi
jbe 0x4172c3
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMenuStringA]
push 0x400
push 0x100
push 0x100
lea ecx, [esp + 0x1c]
call fcn.0046eee2
push eax
mov eax, dword [edi + 4]
push esi
push eax
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0046ef31
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4172ae
lea ecx, [esp + 0x14]
lea edx, [esp + 0x11c]
push ecx
push 0x400
push edx
push eax
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x11c]
test al, al
je 0x417287
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x11c]
push ecx
push eax
push 0x400
push esi
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov eax, dword [edi + 4]
push esi
push eax
call ebx
push eax
call fcn.0046f8b9
test eax, eax
je 0x4172ae
mov ecx, dword [edi + 4]
push esi
push ecx
call ebx
push eax
call fcn.0046f8b9
push eax
call fcn.00417150
add esp, 4
mov edx, dword [edi + 4]
inc esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jb 0x417203
pop ebp
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x91c], 0xffffffff
call fcn.0046eab2
mov ecx, dword [esp + 0x914]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x918
ret

Function at 0x4182f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xb0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x2c], 2
jne 0x41836e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 4]
mov dword [esp + 0xc], 1
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0
push edx
push 0
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xb0
ret