joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x1008080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x10080a1
mov eax, 0xff
call fcn.01003680
xor byte [esi], al
inc esi
dec ebx
jne 0x1008091
pop esi
pop ebx
ret
Function at 0x40665c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406b04
mov byte [esp], al
cmp byte [esp], 0
jne 0x4067e5
test edi, edi
je 0x4067e5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406725
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406700
cmp edi, 0xffffffff
je 0x4066c1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4066c1
mov byte [esp], 0
jmp 0x4067e5
cmp dword [esi], 1
jg 0x406700
cmp dword [esi], 0
jne 0x4066f2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4066f2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4067e5
lea eax, [esp + 0xc]
call fcn.0040633c
dec ebp
test ebp, ebp
jg 0x4066a6
cmp edi, 0xffffffff
je 0x406725
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406723
mov byte [esp], 0
jmp 0x4067e5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40666a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406725
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406860
mov edx, eax
mov ebx, dword [0x4ac8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406789
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406787
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406789
xor edi, edi
cmp byte [esp], 0
je 0x4067af
mov ebx, dword [esi]
test bl, 1
jne 0x4067c5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40678f
mov byte [esp + 1], 1
jmp 0x4067c5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067af
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40673c
cmp byte [esp], 0
je 0x4067e5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40768c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac058], 0
je 0x4076f3
cmp word [0x4ac344], 0xd7b2
jne 0x4076b5
cmp dword [0x4ac34c], 0
jbe 0x4076b5
mov eax, 0x4ac340
call dword [0x4ac35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407720
call fcn.004081cc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a8032], 0
jne 0x40770f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4078b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4a8034], 0
je 0x4078df
mov edx, edi
mov eax, esi
call dword [0x4a8034]
mov ebx, eax
jmp 0x4078f0
mov eax, 8
call fcn.004053f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ac059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40787c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407920
mov eax, ebx
call fcn.0040540c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40a840
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a9a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004079f4
cmp si, word [0x4a8a08]
jb 0x40a8d8
cmp si, word [0x4a8c08]
ja 0x40a8d8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a8d8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4a8a08]
jae 0x40a8b2
mov edi, ebx
dec edi
jmp 0x40a8d3
cmp si, word [ebx*8 + 0x4a8a08]
jbe 0x40a8c2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a8d3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4a8a0c]
call fcn.0040a760
jmp 0x40a8d8
cmp edi, dword [ebp - 8]
jae 0x40a89c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a987
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a987
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040856c
push dword [ebp - 0x160]
push 0x40a9c0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040856c
push dword [ebp - 0x164]
push 0x40a9d0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040856c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004087a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9ac
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407a54
ret
Function at 0x40ab58
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ac5c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4aec10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4aec28]
jne 0x40aba4
mov eax, esi
mov edx, 0x4aec2a
mov ecx, 0x55
call fcn.0040856c
push 0x4aec10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ac46
push 0x4aec10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004079f4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ac13
cmp byte [0x4aec0c], 0
je 0x40abd8
mov edx, esi
mov eax, ebx
call fcn.0040aa3c
jmp 0x40ac13
mov edx, esi
mov eax, ebx
call fcn.0040a840
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ac13
cmp dword [esi], 0
je 0x40abfc
mov eax, esi
mov edx, 0x40ac74
call fcn.004086c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a840
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004086c4
push 0x4aec10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4aec28], bx
mov eax, dword [esi]
call fcn.004084c8
mov ecx, eax
mov eax, 0x4aec2a
mov edx, 0xaa
call fcn.0040a6c0
push 0x4aec10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ac63
lea eax, [ebp - 4]
call fcn.004079f4
ret
Function at 0x40b3b8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407ad8
xor eax, eax
push ebp
push 0x40b478
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040856c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040871c
mov eax, dword [ebx]
call fcn.0040b268
test al, al
jne 0x40b455
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040856c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040871c
mov eax, dword [ebx]
call fcn.0040b268
test al, al
jne 0x40b455
mov eax, ebx
call fcn.004079f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b47f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407a54
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x40cde0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40e830
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040e81c
add esp, 0x208
pop ebx
ret

Function at 0x4197ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x419845
test eax, edx
je 0x419848
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x419803
movzx eax, word [eax]
sub eax, ecx
jmp 0x41982a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41982b
add ecx, 4
js 0x41981b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x419828
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41982a
xor eax, eax
ret
test eax, eax
je 0x419854
test edx, edx
jne 0x4197f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e174
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41e1ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407b7c
jmp 0x41e1b6
mov eax, ebx
mov edx, esi
call fcn.00407dd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41e1c0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41e1e2
movzx eax, word [esp]
jmp 0x41e1e4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41f234
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41f359
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041f03c
mov esi, eax
mov eax, dword [0x4ab6c0]
cmp byte [eax], 0
je 0x41f301
mov eax, dword [0x4ab524]
call fcn.00405800
call fcn.00405544
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41f204]
call fcn.00409f74
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41f374
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41f33d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ab4f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4af634]
call fcn.0040a364
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f360
lea eax, [ebp - 4]
mov edx, dword [0x41f204]
call fcn.0040a098
ret
Function at 0x420080
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x420180
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407e1c
lea eax, [ebp - 4]
call fcn.00407f84
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42016a
mov eax, ebx
call fcn.004053f0
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x420163
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42014d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x420194
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42014d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42016a
mov eax, dword [ebp - 0x10]
call fcn.0040540c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420187
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x422940
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x422986
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004228d4
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42298d
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x422b9c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x422c31
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x422be7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00407b7c
jmp 0x422c1b
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x422bfe
lea eax, [ebp - 4]
call fcn.004079f4
jmp 0x422c11
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00422a5c
mov ebx, eax
test esi, esi
je 0x422c11
dec esi
jmp 0x422bee
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c38
lea eax, [ebp - 4]
call fcn.004079f4
ret
Function at 0x422c40
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041a8a4
add esp, 0x208
pop ebx
ret

Function at 0x422ca0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041a8a4
add esp, 0x208
pop ebx
ret

Function at 0x422dfc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x422f32
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x422f1c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x422e59
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x422f1c
cmp dword [ebp - 0x14], 0
jne 0x422e6e
mov eax, dword [ebp - 0xc]
call fcn.004079f4
mov bl, 1
jmp 0x422f1c
cmp dword [ebp - 0x14], 0x70000000
jb 0x422e7c
call fcn.0041f398
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00407b7c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00407f74
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x422e22
test eax, eax
jne 0x422f1c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x422eca
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x422f1c
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x422ed2
dec esi
test esi, esi
je 0x422ee1
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x422ed1
cmp dword [ebp - 0x10], 7
jne 0x422eec
test esi, esi
je 0x422eec
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00408644
cmp dword [ebp - 0x10], 7
jne 0x422f0f
test esi, esi
je 0x422f0f
lea eax, [ebp - 4]
call fcn.00407f74
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407dd4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422f39
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x4245d8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4b1904
mov eax, esi
mov edx, 8
test al, 1
je 0x4245f4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4245f6
shr eax, 1
dec edx
jne 0x4245e7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4245e0
pop esi
ret
Function at 0x42460c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4b1900], 0
jne 0x424636
call fcn.004245d8
mov dword [esp], 0x4b1900
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x424660
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4b1904]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x42463c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4270a4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00427058
test al, al
jne 0x4270c5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x427111
xor eax, eax
push ebp
push 0x427101
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004084c8
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427108
lea eax, [ebp - 0xc]
call fcn.00427094
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret