joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010a3d
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 0x10010ada
push ebx
push esi
call fcn.10010a06
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.1000ec18
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10010a87
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10010ad9
push edi
push eax
call fcn.1000d56a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10010aa7
call fcn.1000d530
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10010ad8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000ec18
add esp, 0x20
test eax, eax
jne 0x10010ac6
push edi
call fcn.1000d530
jmp 0x10010ace
push ebx
call fcn.1000d530
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 0x10010add
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10010aee
pop esi
ret
push ebx
push edi
push esi
call fcn.10010a06
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000d56a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10010b16
push ebx
push esi
push edi
call fcn.10004830
add esp, 0xc
push 0
call fcn.1000d530
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10010ee6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10010b2b

Function at 0x10011165
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c610
push 0x1001c608
push str.FlsAlloc
push 0x1f
call fcn.10011024
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011199
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a188]
call esi
jmp 0x1001119f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100111e3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c620
push 0x1001c618
push str.FlsGetValue
push 0x21
call fcn.10011024
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001121a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011222
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c628
push 0x1001c620
push str.FlsSetValue
push 0x22
call fcn.10011024
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001125c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001a188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10016afd
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.10016a79
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10016c6c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10016c6c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10016c21
jg 0x10016b59
test eax, eax
je 0x10016c17
push 1
push 0x1000
call fcn.1000f6be
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10016b7c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10016c0e
push 0x8000
push ebx
call fcn.100169aa
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10016ba5
jg 0x10016ba0
cmp ecx, 0x1000
jb 0x10016ba5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10014c90
add esp, 0x10
cmp eax, 0xffffffff
je 0x10016bea
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 0x10016ba0
jl 0x10016bd1
test ecx, ecx
jne 0x10016b92
push dword [ebp - 0xc]
push ebx
call fcn.100169aa
push esi
call fcn.1000d530
add esp, 0xc
xor ebx, ebx
jmp 0x10016c7a
cmp byte [edi + 0x24], 0
je 0x10016c01
cmp dword [edi + 0x20], 5
jne 0x10016c01
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10016c0c
mov ebx, dword [edi + 0x18]
jmp 0x10016c0e
xor ebx, ebx
push esi
call fcn.1000d530
pop ecx
jmp 0x10016c7a
test ecx, ecx
jg 0x10016be3
jl 0x10016c21
test eax, eax
jae 0x10016be3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000c26b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10016c41
cmp byte [edi + 0x1c], 0
je 0x10016be3
jmp 0x10016c72
push ebx
call fcn.10011c1b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10016be3
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 0x10016c7a
cmp byte [edi + 0x1c], 0
je 0x10016c77
mov ebx, dword [edi + 0x18]
jmp 0x10016c7a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1000c26b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10018c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10018cad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10018cad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402ebc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x449350]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f37
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f3e
cmp dword [ebp + 0x10], ebx
jne 0x402f2b
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ebc
test eax, eax
jne 0x402f3e
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402efe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406412
cmp eax, ebx
je 0x402f63
push ebx
push dword [0x449350]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f37
cmp dword [0x449350], ebx
jne 0x402f34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f34
jmp 0x402f37
Function at 0x4030ab
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x480000
push 0x2000
add eax, 0x3e8
push esi
push ebx
mov dword [0x4492ac], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00405bf2
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a648], edi
jne 0x403105
mov eax, 0x40a734
jmp 0x4032e2
push esi
mov esi, 0x478000
push esi
call fcn.00405f1d
push esi
call fcn.00405a4d
push eax
push 0x482000
call fcn.00405f1d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x429450], eax
mov esi, eax
jle 0x403220
mov ebx, 0x421450
mov eax, dword [0x4492b4]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x403159
mov edi, eax
push edi
push ebx
call fcn.004034db
test eax, eax
je 0x40328a
cmp dword [0x4492b4], 0
jne 0x4031eb
push 0x1c
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00405bad
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x4031f9
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x4031f9
cmp dword [ebp - 0x18], 0x74736e49
jne 0x4031f9
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x4031f9
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x4031f9
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x415448]
and eax, 2
or dword [0x449340], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x4492b4], ecx
jg 0x403283
test byte [ebp + 8], 8
jne 0x4031dd
test byte [ebp + 8], 4
jne 0x40321e
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x4031f9
mov edi, esi
jmp 0x4031f9
test byte [ebp + 8], 2
jne 0x4031f9
push 0
call fcn.00403050
pop ecx
cmp esi, dword [0x429450]
jge 0x40320e
push edi
push ebx
push dword [ebp - 8]
call fcn.00406488
mov dword [ebp - 8], eax
add dword [0x415448], edi
sub esi, edi
test esi, esi
jg 0x40313e
xor ebx, ebx
push 1
call fcn.00403050
cmp dword [0x4492b4], ebx
pop ecx
je 0x403283
cmp dword [ebp - 4], ebx
je 0x403257
push dword [0x415448]
call fcn.0040350d
lea eax, [ebp + 8]
push 4
push eax
call fcn.004034db
test eax, eax
je 0x403283
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x403283
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x4492b4]
add eax, 0x1c
push eax
call fcn.0040350d
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.004032e9
cmp eax, dword [ebp - 0x14]
je 0x403294
mov eax, 0x40a668
jmp 0x4032e2
push 1
call fcn.00403050
pop ecx
jmp 0x403283
test byte [ebp - 0x28], 1
mov dword [0x4492b0], esi
mov eax, dword [esi]
mov dword [0x4492b8], eax
je 0x4032ad
inc dword [0x4492bc]
lea edi, [esi + 0x3c]
push 8
mov eax, edi
pop ecx
add dword [eax], esi
dec ecx
sub eax, 8
test ecx, ecx
ja 0x4032b5
push 1
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esi, 4
push 0x40
push esi
push 0x4492c0
mov dword [edi], eax
call fcn.00405bad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4032e9
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403306
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403315
mov ebx, 0x41944c
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40332a
mov ecx, dword [0x4492f8]
add ecx, eax
push ecx
call fcn.0040350d
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034db
test eax, eax
je 0x4034c9
test byte [ebp + 0x17], 0x80
je 0x40346f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4153c0
mov dword [ebp - 0xc], eax
call fcn.004064fe
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034d1
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40337a
mov esi, dword [ebp + 0x14]
mov edi, 0x41544c
push esi
push edi
call fcn.004034db
test eax, eax
je 0x4034c9
sub dword [ebp + 0x14], esi
mov dword [0x4153d8], edi
mov dword [0x4153dc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4153c0
mov dword [0x4153e0], ebx
mov dword [0x4153e4], eax
call fcn.00406520
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403467
mov esi, dword [0x4153e0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x449354], 1
mov edi, eax
je 0x40341c
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033e9
cmp dword [ebp + 0x14], 0
jne 0x40341c
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004051f4
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40345c
cmp dword [ebp + 0x10], eax
jne 0x403445
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40346b
cmp dword [ebp - 0x10], esi
jne 0x40346b
add dword [ebp - 4], esi
jmp 0x403451
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x4153e0]
cmp dword [ebp - 0x14], 1
je 0x4034d1
jmp 0x40339d
cmp dword [ebp + 0x14], eax
jg 0x40336d
jmp 0x4034d1
push 0xfffffffffffffffc
jmp 0x4034cb
push 0xfffffffffffffffe
jmp 0x4034cb
test edi, edi
jne 0x4034b6
cmp dword [ebp + 0x14], 0
jle 0x4034d1
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403484
mov esi, dword [ebp + 0x14]
mov edi, 0x41544c
push esi
push edi
call fcn.004034db
test eax, eax
je 0x4034c9
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40346b
cmp esi, dword [ebp + 0x10]
jne 0x40346b
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x403473
cmp dword [ebp + 0x14], esi
jge 0x4034be
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034db
test eax, eax
jne 0x4034ce
push 0xfffffffffffffffd
pop eax
jmp 0x4034d4
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4056f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43fc90], 0x44
push eax
xor eax, eax
push 0x43fc90
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405732
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405ae9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43d490
push esi
call fcn.00405f1d
push esi
call fcn.00405a9a
mov edi, eax
test edi, edi
jne 0x405b0a
xor eax, eax
jmp 0x405b5c
push edi
call fcn.004061a5
test byte [0x4492b8], 0x80
je 0x405b23
mov al, byte [edi]
test al, al
je 0x405b06
cmp al, 0x5c
je 0x405b06
sub edi, esi
push esi
call fcn.00405f33
cmp eax, edi
push esi
jle 0x405b46
call fcn.004063eb
test eax, eax
je 0x405b3e
test byte [eax], 0x10
je 0x405b06
push esi
call fcn.00405a4d
jmp 0x405b25
call fcn.00405a06
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405bd3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405bef
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405bf2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c21
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c66
mov eax, edi
dec edi
test eax, eax
jne 0x405c2c
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c60
Function at 0x405c6a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406412
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c8e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dc7
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43fe18], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43fe18
je 0x405cd2
push 1
push 0
push esi
call fcn.00405bf2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dcd
cmp eax, edi
jg 0x405dcd
mov esi, 0x43f890
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dcd
cmp eax, edi
jg 0x405dcd
push esi
push ebp
push str._s_s_r_n
push 0x43f490
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4492b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f51
push 4
push 0xc0000000
push esi
call fcn.00405bf2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405dc7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405dc0
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405dc0
cmp edi, dword [esp + 0x18]
jne 0x405dc0
push str._Rename__r_n
push esi
call fcn.00405b61
test eax, eax
jne 0x405dd4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f1d
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43f490
push eax
call fcn.00405bad
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x449330]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aab0
push eax
call fcn.00405b61
test eax, eax
je 0x405d8b
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405dfb
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405df0
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405d8d
Function at 0x405e03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e74
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e63
cmp dword [ebp + 0x14], 1
je 0x405e65
cmp dword [ebp + 0x14], 2
je 0x405e65
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40623e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406263
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x40625a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x4062d6
cmp dword [0x440a20], ebx
je 0x4062d6
cmp byte [0x440620], bl
je 0x4062a2
cmp dword [0x40a880], 0xffffffff
jne 0x4062ab
push 4
push 0x40000000
push 0x440620
call fcn.00405bf2
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x4062d6
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x4062d6
push esi
mov esi, 0x444a40
push 0x40aac8
push esi
call fcn.00405f40
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f33
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x44021c], esi
push edi
jne 0x4064c2
mov ecx, 0x440218
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40649e
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440618
jl 0x406499
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4064f7
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440218]
xor eax, esi
inc ecx
dec edx
jne 0x4064da
pop edi
pop esi
not eax
ret 0xc
Function at 0x4947d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x17
mov dword [esp + 0x18], ebp
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x10c], eax
mov eax, dword [esp + 0x14]
lea edi, [esi + 8]
mov ecx, eax
inc eax
push ecx
mov dword [esp + 0x18], eax
call ebx
mov dword [edi], eax
mov eax, dword [esp + 0x14]
add edi, 4
cmp eax, 0x1f
jl 0x4947fc
call fcn.00494700
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [esi + 0x110]
push ebp
push eax
push ebp
push 0x5e
call edi
lea ecx, [esi + 0x114]
push ebp
push ecx
push ebp
push 0x70
call edi
push 0x85b9f8
call fcn.00494750
add esp, 4
lea edx, [esi + 0x178]
push ebp
push edx
push ebp
push 0x2006
call edi
lea eax, [esp + 0x18]
mov dword [esi + 0x11c], ebp
push eax
push 0x20019
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.Control_PanelAppearanceNew_Schemes
push connect
call ebp
test eax, eax
jne 0x49492b
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
lea edi, [esi + 0x1188]
push ecx
push edi
push eax
push eax
push str.SelectedStyle
push edx
mov dword [esp + 0x2c], 0x28
mov word [edi], ax
call ebx
test eax, eax
jne 0x494920
cmp dword [esp + 0x14], 2
jbe 0x494920
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push edi
push ecx
call ebp
test eax, eax
jne 0x494920
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x12], ax
lea edx, [esp + 0x14]
lea eax, [esp + 0x12]
push edx
push eax
push 0
push 0
push str.SelectedSize
push ecx
mov dword [esp + 0x2c], 0x28
call ebx
cmp word [esp + 0x12], 0
je 0x49490c
cmp dword [esp + 0x14], 2
jbe 0x49490c
mov eax, 0xfffffffe
jmp 0x49490f
or eax, 0xffffffff
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x11b0], eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x562abe
Capabilities:
Encode data using xor

Disassembly:
pop ecx
and eax, 0x4b1fc579
sub edi, ecx
xor cl, byte [ebp - 0x74b8e50a]
pop es
xchg edx, eax
cwde
lea ebp, [edi]
pop edx
cmp al, 0x79
mov fs, word [eax + 0x2d]
shl byte [esi], 1
xor eax, 0x11d69596
inc ebx
out dx, al
add edx, esp
inc esp
aam 0x67
rol dword [edi], 6
xchg edx, esp
fild dword [edi + 6]
aaa
xchg esp, eax
pop ecx
mov dl, 0x8b
xchg esi, eax
jne 0x562acd
xchg esi, eax
sal dword [0x56544035], cl
movsb byte es:[edi], byte [esi]
sal dword [ebx], 0x6d
div byte [eax]
cmpsd dword ds:[esi], dword es:[edi]
insb byte es:[edi], dx
push ecx
xchg esp, eax
outsb dx, byte [esi]
invalid