joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013c40
Capabilities:
Terminate process

Disassembly:
push 0x81c
mov eax, 0x1002d483
call fcn.10017005
mov ebx, ecx
xor ecx, ecx
lea edi, [ebx + 0x40]
mov esi, ecx
mov dword [ebp - 0x818], ecx
mov dword [ebp - 0x814], ecx
cmp dword [edi], ecx
je 0x10013d7c
push 0x10
push ecx
lea eax, [ebp - 0x828]
push eax
call fcn.100194b0
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.oleaut32.dll_VariantClear]
push esi
push str.Caption
push dword [edi]
lea eax, [ebp - 0x828]
mov dword [ebp - 4], esi
push eax
push 2
push ebx
call fcn.100115c6
add esp, 0x18
test eax, eax
jne 0x10013ce1
push dword [ebp - 0x820]
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.100115c6
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.user32.dll_FindWindowW]
mov dword [ebp - 0x814], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x818]
push ecx
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, ebx
call esi
mov esi, eax
test esi, esi
js 0x10013d20
cmp dword [ebp - 0x818], 0
jne 0x10013d20
push 0
push str.Quit
push dword [edi]
push 0
push 1
push ebx
call fcn.100115c6
add esp, 0x18
mov esi, eax
mov ecx, edi
call fcn.10009bb3
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x10013d7c
cmp dword [ebp - 0x818], 0
jne 0x10013d7c
test esi, esi
jns 0x10013d7c
and dword [ebp - 0x814], 0
lea ecx, [ebp - 0x814]
push ecx
push eax
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x814]
push 1
push 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, esi
call fcn.10016faf
ret
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.100115c6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret
Function at 0x40a404
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040794b
mov dword [ebp - 0x14], eax
cmp dword [0xb216ac], esi
jne 0x40a4f7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40a484
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a5d7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40a5d7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a5d7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xb216ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xb216b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xb216b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xb216bc], eax
test eax, eax
je 0x40a4f4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xb216b8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a51c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a50f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40a531
push 4
pop eax
jmp 0x40a5d9
cmp dword [ebp - 0x14], esi
je 0x40a531
push dword [0xb216ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a516
mov eax, dword [0xb216b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40a58f
cmp dword [0xb216bc], edi
je 0x40a58f
push eax
call ebx
push dword [0xb216bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a58f
test eax, eax
je 0x40a58f
call ecx
test eax, eax
je 0x40a584
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a584
test byte [ebp - 8], 1
jne 0x40a58f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40a5bf
mov eax, dword [0xb216b0]
cmp eax, edi
je 0x40a5bc
push eax
call ebx
test eax, eax
je 0x40a5bc
call eax
mov esi, eax
test esi, esi
je 0x40a5bc
mov eax, dword [0xb216b4]
cmp eax, edi
je 0x40a5bc
push eax
call ebx
test eax, eax
je 0x40a5bc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xb216ac]
call ebx
test eax, eax
je 0x40a5d7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40a5d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d28
mov esp, ebp
pop ebp
ret
Function at 0x40b6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x40b7b4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
lea esi, [ecx + 2]
sub ecx, eax
add ecx, 0xfffffffe
lea edx, [eax + 2]
mov dword [esp + 0x18], ecx
lea eax, [edi - 1]
mov dword [esp + 0x10], edx
shr eax, 3
inc eax
mov dword [esp + 0x14], eax
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
mov edx, ecx
mov ecx, dword [esp + 0x20]
call fcn.0040ad60
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [esp + 0x14]
add esp, 4
movzx eax, byte [ecx + 0x100]
mov ecx, dword [esp + 0x18]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [esp + 0x14], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [esp + 0x18]
jne 0x40b6e5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bff0
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp - 4], esi
call fcn.00424d09
test al, al
je 0x40c035
add byte [edx + 0x5e897677], cl
mov bl, byte [ebx + 0x1a]
out 0x86, eax
mov al, byte [0x2801fbcb]
sub dword [edi - 0x3d], 0x1c
cmpsb byte [esi], byte es:[edi]
Function at 0x4130a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4130b5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4130c0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4130f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x413109
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413115
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x413110
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x413150
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x62e10c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00412ff0
mov esi, eax
test esi, esi
jne 0x413247
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x413219
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00413150
mov esi, eax
test esi, esi
jne 0x413247
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x4131e0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x413230
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00412e90
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x413256
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0043671f
mov esp, ebp
pop ebp
ret 4
Function at 0x413740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3456
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x62e10c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4137ec
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4137ec
call fcn.00412b70
mov esi, eax
jmp 0x4138dc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41380f
call fcn.00412b70
jmp 0x4138cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41382d
call fcn.00412b70
jmp 0x4138cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41384e
mov esi, 0x8007000e
jmp 0x4138d1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00415530
jmp 0x413878
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x41388f
mov esi, 0x8007000e
jmp 0x4138d1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4138af
call fcn.00412b70
jmp 0x4138cf
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004145a0
mov esi, eax
test edi, edi
je 0x4138dc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x413900
lea ecx, [ebp - 0x418]
call fcn.004156b0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043671f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415b30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a35b3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x62e10c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x633064
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x633064
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x622450
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004177c0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x637980], ecx
inc eax
cmp eax, 0x100
jb 0x41c282
cmp eax, 0x800
jae 0x41c353
nop
mov edx, dword [eax*4 + 0x637580]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x637980]
mov dword [eax*4 + 0x637980], edx
inc eax
cmp eax, 0x800
jb 0x41c330
mov dword [0x633070], 0x41d0f0
call fcn.0041cf20
mov ecx, dword [0x633070]
test eax, eax
mov edx, 0x41d190
cmove ecx, edx
mov dword [0x633070], ecx
ret
Function at 0x41d470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x41d490
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x41d4c2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x41d4bf
inc esi
cmp esi, edx
jb 0x41d4b0
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x41d5ec
cmp ecx, 3
jbe 0x41d502
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x41d540
cmp cl, 0xff
je 0x41d540
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x41d4a4
dec ecx
shl eax, cl
and eax, 7
je 0x41d4da
movzx ecx, byte [eax + 0x5a7f08]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x5a7f00], 0
mov cl, byte [edx + 4]
je 0x41d52a
test cl, cl
je 0x41d52a
cmp cl, 0xff
jne 0x41d4da
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x41d4a4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x41d56e
lea edx, [edi + ebx]
add edx, esi
jmp 0x41d574
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x41d5b2
movzx edi, byte [eax + 0x5a7f08]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x41d59e
cmp cl, 0xff
jne 0x41d5b2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x41d561
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x41d4a4
pop edi
pop esi
cmp ecx, 3
jbe 0x41d601
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fb74
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x62e10c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, 0x623448
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00454668
lea eax, [ebp - 0x20c]
push str.WanNengWBInput
push eax
call fcn.00454668
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00454668
lea eax, [ebp - 0x20c]
push 0x6234dc
push eax
call fcn.00454668
lea eax, [ebp - 0x20c]
push str..ini
push eax
call fcn.00454668
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x622454
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fc32
xor al, al
jmp 0x41fc5b
cmp word [ebp - 0x414], si
je 0x41fc4a
lea eax, [ebp - 0x414]
push eax
call fcn.004549af
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.00401ac0
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043671f
mov esp, ebp
pop ebp
ret 4

Function at 0x41fc6e
Capabilities:
Check if file exists

Disassembly:
push 0x254
mov eax, 0x5a3a33
call fcn.00437119
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x248]
mov dword [ebp - 4], ebx
push eax
call fcn.0041fb74
test al, al
je 0x41fd64
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00446a10
lea eax, [ebp - 0x218]
push eax
push 0x5a80f4
push 0x6234dc
call fcn.0042fa1f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0041f9b9
push 0x623448
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
call fcn.0041f996
add esp, 0x30
push ebx
push 1
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.00401a00
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41fd55
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x41fd53
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00401bc0
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401a00
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401a00
mov al, bl
call fcn.004370d4
ret 4
Function at 0x4233f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
xor ebx, ebx
inc ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
jne 0x423428
xor eax, eax
jmp 0x4234d9
call fcn.00424fbb
test al, al
je 0x423449
sub al, byte [ebx]
popfd
cli
fistp qword [ecx - 0x26]
push ebp
in al, dx
cmp ebp, edx
fcom qword cs:[ecx + 0x1e]
mov bl, 0x3d
ror byte [ebx - 0x24cc078b], 0x43
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 8], eax
clc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00424eec
test al, al
je 0x42348e
mov ebp, 0xae4e1ef4
dec ecx
and esi, eax
cld
push ebp
movsb byte es:[edi], byte [esi]
sub cl, 0x70
mov byte [ebx + 0x66], dh
adc eax, 0xe2d6e558
salc
and al, 0x9c
adc al, ch
mov ebx, 0x84000018
sal byte [ebp + edx + 0x78], 0x25
call fcn.00424d4e
test al, al
je 0x4234ac
js 0x4234be
bound edx, qword [ebp + 0x45]
loop 0x423463
push edi
mov dl, 0x74
stc
mov byte [0x28f0e804], al
outsb dx, byte [esi]
invalid
call fcn.00424ea7
test al, al
je 0x4234c7
adc cl, byte [edi + 0x1d4a97a9]
aas
aad 0x37
dec ebp
lcall 0x3c, 0xa71b2085
lahf
cmp dword [ebp - 8], 0
je 0x4234d5
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x4234d7
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424891
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x633094]
push ebx
push esi
push edi
test al, 1
jne 0x4248b0
or eax, 1
mov dword [0x633094], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4248b5
mov eax, dword [0x633090]
nop
xor byte [ebx], ah
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x633090], eax
add byte [ebx + 0x633090], ah
call fcn.00425000
test al, al
je 0x4248df
je 0x4248d7
xor bh, byte [edx + 0x19]
scasd eax, dword es:[edi]
cld
loope 0x4248b1
sub dl, dl
cmp ch, byte [0x174f06ca]
call fcn.00424d09
test al, al
je 0x424907
fst qword [ebp - 0x5436e442]
in al, 1
insd dword es:[edi], dx
enter 0x457d, 0x2c
add byte [ebx], dl
jmp 0x26194c7
call fcn.00424b26
test al, al
je 0x424926
sahf
into
jnp 0x4248bf
cld
xchg esi, eax
fist word [esi]
adc al, 0xb8
int1
mov ah, 0xf5
inc esi
popal
dec ecx
aam 0xf4
insd dword es:[edi], dx
mov ebx, 0x3090a14c
arpl word [eax], ax
mov eax, dword [0x633090]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
sar eax, 0xf
xor eax, dword [0x633090]
cdq
cmp esi, edi
jge 0x424949
sub edi, esi
inc edi
idiv edi
lea eax, [esi + edx]
jmp 0x424951
sub esi, edi
inc esi
idiv esi
lea eax, [edi + edx]