joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba443
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x404476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x4c
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402ef0
call fcn.00429dbc
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
lea eax, [ebp - 0x1c]
push eax
push 0x28
push dword [ebp - 0x44]
call fcn.00429ea8
mov dword [ebp - 0x48], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
call fcn.00429ef0
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
not eax
mov ecx, dword [ebp - 0x18]
and ecx, eax
test ecx, ecx
je 0x4ba5a5
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 2
jae 0x4ba4ce
and dword [ebp - 0x58], 0
jmp 0x4ba4d6
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
imul eax, eax, 0xc
lea eax, [ebp + eax - 0x34]
push eax
push 0x42dd30
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push 0
call fcn.00429d0c
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeStr
call fcn.00429ef0
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
not eax
mov ecx, dword [ebp - 0x18]
and ecx, eax
test ecx, ecx
je 0x4ba5a5
mov dword [ebp - 0x38], 1
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 2
jae 0x4ba545
and dword [ebp - 0x5c], 0
jmp 0x4ba54d
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
imul eax, eax, 0xc
mov dword [ebp + eax - 0x2c], 2
and dword [ebp - 0x48], 0
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1c
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x1c]
call fcn.00429d5c
mov dword [ebp - 0x4c], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
call fcn.00429ef0
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
xor eax, eax
cmp dword [ebp - 0x44], 0
sete al
neg eax
mov word [ebp - 0x14], ax
push dword [ebp - 0x1c]
call fcn.00429e5c
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x4ba5c3
jmp 0x4ba5c2
ret
Function at 0x4c57d5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x404476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x44
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403280
fld dword [0x4023b8]
fstp dword [ebp - 0x1c]
mov eax, dword [0x5021e0]
sub eax, 1
jo 0x4c59ec
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 1
and dword [ebp - 0x14], 0
jmp 0x4c5838
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x44]
jo 0x4c59ec
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x48]
jg 0x4c5998
push dword [ebp - 0x14]
push dword [0x5021dc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov eax, dword [eax + 4]
sub eax, 1
jo 0x4c59ec
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 1
and dword [ebp - 0x18], 0
jmp 0x4c587d
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x4c]
jo 0x4c59ec
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x50]
jg 0x4c5993
push dword [0x5021dc]
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [0x5021dc]
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp - 0x14]
push dword [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [0x5021dc]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp - 0x18]
push dword [ebp - 0x38]
call sub.MSVBVM60.DLL___vbaDerefAry1
add eax, 4
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaDerefAry1
add eax, 8
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00481195
fstp dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
fld dword [ebp - 0x40]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x1c]
fcomp dword [ebp - 0x20]
fnstsw ax
sahf
jbe 0x4c598e
fld dword [ebp - 0x20]
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x4c586e
jmp 0x4c5829
wait
push 0x4c59d8
jmp 0x4c59d7
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x4d164a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0x64
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push esi
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
fld dword [0x4023b8]
fstp dword [ebp - 0x10]
fld dword [0x4023b8]
fstp dword [ebp - 8]
mov eax, dword [0x501b64]
sub eax, 1
jo 0x4d1a3f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
and dword [ebp - 4], 0
jmp 0x4d169f
Function at 0x42551b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42555a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42555a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42555a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42555a
cmp dword [ecx + 0x74], 0xe
jbe 0x42555a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42cccb
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 0x42cd68
push ebx
push esi
call fcn.0042cc94
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.0042cc28
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42cd15
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42cd67
push edi
push eax
call fcn.0042b760
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42cd35
call fcn.0042b7ae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42cd66
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042cc28
add esp, 0x20
test eax, eax
jne 0x42cd54
push edi
call fcn.0042b7ae
jmp 0x42cd5c
push ebx
call fcn.0042b7ae
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 0x42df77
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436940
push 0x436938
push str.FlsAlloc
push 0x1f
call fcn.0042de36
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42dfab
push dword [ebp + 8]
mov ecx, esi
call dword [0x434144]
call esi
jmp 0x42dfb1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42dff5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436950
push 0x436948
push str.FlsGetValue
push 0x21
call fcn.0042de36
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e02c
push dword [ebp + 8]
mov ecx, esi
call dword [0x434144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42e034
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436958
push 0x436950
push str.FlsSetValue
push 0x22
call fcn.0042de36
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e06e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x434144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x433340
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43336d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43336d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1007ff8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100b33c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x100b3ac], 0
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1001b30
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1008095
push 0x1001b1c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008076
call eax
test eax, eax
jne 0x1008066
mov dword [0x100b3ac], 1
push 0x1001ad0
jmp 0x100806b
push 0x1001a88
push 0
call fcn.01008ccf
pop ecx
pop ecx
jmp 0x100808c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001a08
push 2
call fcn.01008ccf
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10080ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10019a0
push 2
call fcn.01008ccf
add esp, 0xc
xor eax, eax
cmp dword [0x100b3ac], eax
setne al
push eax
push 0x14d2
call fcn.01009207
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.01008697
leave
ret

Function at 0x10081f8
Capabilities:
Create process on windows
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x100b33c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01008199
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x100824b
push esi
push 0x1001d80
push 2
call fcn.01008ccf
add esp, 0xc
jmp 0x10082cc
lea eax, [ebp - 0x20c]
push eax
push 0x1001d40
push 0
call fcn.01008ccf
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x23c], 0x1001990
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10082cc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1001cc8
push 2
call fcn.01008ccf
add esp, 0xc
call esi
test eax, eax
jle 0x10082ca
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01008697
leave
ret 4
Function at 0x100867c
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1009308
call fcn.01008864
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100b9e4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1008433
cmp eax, esi
jne 0x1008426
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1008436
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100840d
xor esi, esi
inc esi
mov eax, dword [0x100b9e0]
cmp eax, esi
jne 0x1008449
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1008478
mov eax, dword [0x100b9e0]
test eax, eax
jne 0x1008472
mov dword [0x100b9e0], esi
push 0x10012ac
push 0x10012a0
call fcn.01008372
pop ecx
pop ecx
test eax, eax
je 0x1008478
jmp 0x10085a0
mov dword [0x100b690], esi
mov eax, dword [0x100b9e0]
cmp eax, esi
jne 0x100849c
push 0x100129c
push 0x1001294
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100b9e0], 2
test ebx, ebx
jne 0x10084a8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100b9e8], 0
je 0x10084cc
push 0x100b9e8
call fcn.010087d9
pop ecx
test eax, eax
je 0x10084cc
push 0
push 2
push 0
call dword [0x100b9e8]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1008528
test al, al
je 0x10084e6
cmp dword [ebp - 0x1c], 0
jne 0x1008528
mov al, byte [esi]
test al, al
je 0x10084f6
cmp al, 0x20
ja 0x10084f6
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10084e6
test byte [ebp - 0x3c], 1
je 0x1008502
movzx eax, word [ebp - 0x38]
jmp 0x1008505
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100b68c], eax
cmp dword [0x100b680], 0
jne 0x100857c
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1008537
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100854a
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10084d3
cmp dword [0x100b690], 0
jne 0x100858b
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100b68c]
jmp 0x10085ac
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010088a9
ret
call fcn.010089b1
jmp 0x10083d3
Function at 0x1008ccf
Capabilities:
Create directory
Query environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xab0
mov eax, dword [0x100b33c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1001e64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], 1
mov dword [ebp - 0xaa0], eax
jne 0x1008d05
mov esi, 0x1001e54
jmp 0x1008d10
cmp dword [ebp + 8], 2
jne 0x1008d10
mov esi, 0x1001e48
lea eax, [ebp - 0xab0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xaa4]
push esi
push eax
movzx eax, word [ebp - 0xaa6]
push eax
movzx eax, word [ebp - 0xaa8]
push eax
movzx eax, word [ebp - 0xaaa]
push eax
movzx eax, word [ebp - 0xaae]
push eax
movzx eax, word [ebp - 0xab0]
push eax
push 0x1001dd8
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.01008199
add esp, 0x28
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov ebx, 0x1f4
push ebx
lea eax, [ebp - 0xa94]
push eax
call fcn.01008c93
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x105
lea eax, [ebp - 0x4a4]
push eax
push 0x1001ef0
call edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 6
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
jne 0x1008e07
push 0x104
lea eax, [ebp - 0x6ac]
push eax
push 0x1001e78
call edi
push esi
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push 0x80
push 4
push esi
push 1
push 6
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
je 0x1008ec9
push 2
push esi
push esi
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1008ebd
push esi
push esi
push ebx
lea eax, [ebp - 0x298]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa4]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0xa98]
call edi
push esi
push esi
push ebx
lea eax, [ebp - 0x298]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa94]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0xa98]
call edi
push esi
lea eax, [ebp - 0xa9c]
push eax
push 2
push 0x1001e70
push dword [ebp - 0xa98]
call edi
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xaa0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008697
leave
ret
Function at 0x1008f86
Capabilities:
Delete registry value
Find taskbar
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1008fdc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x10022f8
push 2
call fcn.01008ccf
add esp, 0xc
call esi
test eax, eax
jle 0x10090a3
and eax, 0xffff
or eax, 0x80070000
jmp 0x10090a3
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002280
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x1009027
push esi
push 0x1002210
push 2
call fcn.01008ccf
add esp, 0xc
cmp esi, edi
jle 0x1009023
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x10090a2
mov eax, 0x10021ec
cmp dword [ebp + 8], edi
jne 0x1009036
mov eax, 0x10021d0
push 8
lea ecx, [ebp - 0xc]
push ecx
push 3
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp + 8], edi
jne 0x1009097
push 0x10021b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x10021b0
push 0x1002194
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x1009081
push edi
push 1
push 0x503
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1009097
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002148
push 2
call fcn.01008ccf
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x10090ad
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1001458
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10090f7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1002388
push dword [ebp - 4]
call esi
push 0x1002354
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x4038ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403944
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403924
xor eax, eax
push ebp
push 0x40391d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403960
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403924
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46e04c], 0
je 0x404731
cmp word [0x46e220], 0xd7b2
jne 0x4046f9
cmp dword [0x46e228], 0
jbe 0x4046f9
mov eax, 0x46e21c
call dword [0x46e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46c090
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 0x404758
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46c030], 0
jne 0x40474d
push 0
push 0x46c088
push 0x46c090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40694c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4069b2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404ac4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403470
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40699c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069b9
lea eax, [ebp - 0x10]
call fcn.00404854
ret

Function at 0x40bf58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bf91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404944
jmp 0x40bf9a
mov eax, ebx
mov edx, esi
call fcn.004048a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bfa4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bfc5
mov al, byte [esp]
jmp 0x40bfc7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c65c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c4c4
mov eax, dword [0x46d1d0]
cmp byte [eax], 0
je 0x40c6d8
mov eax, dword [0x46cfc8]
call fcn.00403084
call fcn.00402c2c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409640
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c720
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c70e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46cf74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e668]
call fcn.00405db8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret