joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4520bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4520df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4520fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x458643
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x458665
cmp dword [edi + 0x3c], 0
jne 0x458665
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00469b53
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004586a4
pop edi
pop esi
pop ebx
ret 8

Function at 0x459dd5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x459e0d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045d777
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045d74f
jmp 0x459e19
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45bbd7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45bc19
call fcn.00469b53
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45bc19
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45bc10
xor eax, eax
jmp 0x45bc21
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045bc27
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42dc00]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push ecx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401062
push 0x104
lea edx, [esp + 8]
push edx
push 1
push eax
mov eax, dword [esp + 0x10]
push str.GYCDLHC
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x108]
xor ecx, esp
mov al, 1
call fcn.0040f839
add esp, 0x10c
ret
Function at 0x402530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402549
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402584
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402580
lea ebx, [ebx]
cmp esi, eax
jae 0x402584
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402570
cmp esi, eax
jb 0x40258a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403222
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x40324b
call fcn.00406bf0
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x40326e
push eax
push dword [esi + 4]
call fcn.004031ad
push esi
push eax
mov ecx, 0x42f004
call fcn.00402e63
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x403b83
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x423df3
call fcn.00410863
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00403b45
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402690
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x403be9
push eax
push dword [esi + 8]
call fcn.004031ad
push dword [esi + 0xc]
mov ecx, 0x42f004
push eax
call fcn.00402e63
mov eax, esi
call fcn.00410902
ret 0x18

Function at 0x405ba4
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x405bad
xor eax, eax
jmp 0x405c16
cmp dword [esp + 8], 0
jne 0x405bb9
call fcn.00405823
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004123da
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x405bf4
push dword [esi + 0x10]
call fcn.0041211f
test eax, eax
pop ecx
jne 0x405bf4
mov esi, dword [esi + 0xc]
call fcn.00411340
push esi
push dword [eax]
push 1
call fcn.0040e374
push dword [esi + 0x10]
call fcn.0041214e
test eax, eax
pop ecx
je 0x405c13
push dword [esi + 0x10]
call fcn.00412073
push eax
call fcn.00402700
pop ecx
pop ecx
jmp 0x405be2
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x405c1f
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x405c29
call fcn.00405823
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0041250f
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x405c56
mov esi, dword [esi + 0xc]
call fcn.00411340
push esi
push dword [eax]
push 1
call fcn.0040e374
pop esi
ret 8

Function at 0x40f839
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42dc00]
jne 0x40f843
repz ret
jmp fcn.00414cfa

Function at 0x410477
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x1c
push 0x42ac60
call fcn.00410be8
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4102fc
push 0x12
call fcn.0041025c
pop ecx
mov eax, 0xff
jmp 0x410471
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x410317
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4102f2
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x410349
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x430e24], esi
mov dword [0x430e2c], eax
mov dword [0x430e30], ecx
mov dword [0x430e34], edx
mov dword [0x430e28], edi
call fcn.00410280
mov dword [ebp - 0x20], eax
push 1
call fcn.00417550
pop ecx
test eax, eax
jne 0x41038f
push 0x1c
call fcn.0041025c
pop ecx
call fcn.004151ad
test eax, eax
jne 0x4103a0
push 0x10
call fcn.0041025c
pop ecx
call fcn.00418d68
and dword [ebp - 4], 0
call fcn.00418b28
test eax, eax
jge 0x4103ba
push 0x1b
call fcn.00410f4a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x432b58], eax
call fcn.004189f3
mov dword [0x430e14], eax
call fcn.0041893a
test eax, eax
jge 0x4103e0
push 8
call fcn.00410f4a
pop ecx
call fcn.004186c7
test eax, eax
jge 0x4103f1
push 9
call fcn.00410f4a
pop ecx
push 1
call fcn.00411066
pop ecx
test eax, eax
je 0x410404
push eax
call fcn.00410f4a
pop ecx
mov eax, dword [0x430e44]
mov dword [0x430e48], eax
push eax
push dword [0x430e3c]
push dword [0x430e38]
call main
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x410432
push eax
call fcn.004111c6
call fcn.004111e8
jmp 0x410467
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.00410c2d
ret
call fcn.00418db0
jmp 0x4102c1
Function at 0x41f84c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00414e61
xor ebx, ebx
cmp dword [0x431888], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41f921
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41f88c
xor eax, eax
jmp 0x41f9e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x428054
push edi
call esi
cmp eax, ebx
je 0x41f885
push eax
call fcn.00414dfe
mov dword [esp], 0x428044
push edi
mov dword [0x431888], eax
call esi
push eax
call fcn.00414dfe
mov dword [esp], 0x428030
push edi
mov dword [0x43188c], eax
call esi
push eax
call fcn.00414dfe
mov dword [0x431890], eax
lea eax, [ebp - 8]
push eax
call fcn.00410ff3
test eax, eax
pop ecx
pop ecx
je 0x41f8ef
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00416080
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41f921
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00414dfe
cmp eax, ebx
pop ecx
mov dword [0x431898], eax
je 0x41f921
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414dfe
pop ecx
mov dword [0x431894], eax
mov eax, dword [0x431894]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41f99a
cmp dword [0x431898], esi
je 0x41f99a
push eax
call fcn.00414e6a
pop ecx
call eax
cmp eax, ebx
je 0x41f967
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x431898]
call fcn.00414e6a
pop ecx
call eax
test eax, eax
je 0x41f967
test byte [ebp - 0x18], 1
jne 0x41f99a
lea eax, [ebp - 0xc]
push eax
call fcn.0041102a
test eax, eax
pop ecx
je 0x41f982
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00416080
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41f991
or dword [ebp + 0x10], 0x200000
jmp 0x41f9cb
or dword [ebp + 0x10], 0x40000
jmp 0x41f9cb
mov eax, dword [0x43188c]
cmp eax, esi
je 0x41f9cb
push eax
call fcn.00414e6a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41f9cb
mov eax, dword [0x431890]
cmp eax, esi
je 0x41f9cb
push dword [ebp - 4]
push eax
call fcn.00414e6a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x431888]
call fcn.00414e6a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4239f2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42dc00]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00423987
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410ed0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x423a41
cmp dword [ebp - 0x1c], 5
jb 0x423a59
jmp 0x423a55
cmp dword [ebp - 0x10], 1
jne 0x423a59
cmp dword [ebp - 0x1c], 4
ja 0x423a55
jne 0x423a59
cmp dword [ebp - 0x18], 0
jbe 0x423a59
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4287f8
call fcn.0042385b
test eax, eax
jge 0x423a7a
mov byte [0x431a04], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040f839
add ebp, 0x78
leave
ret
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
xor eax, eax
cmp ecx, 3
jb 0x4010aa
mov ebx, 4
sub ebx, edi
mov dword [ebp - 4], ebx
jmp 0x401028
mov ebx, dword [ebp - 4]
lea ecx, [eax + edi]
add ebx, ecx
cmp ebx, dword [ebp + 8]
ja 0x401156
movzx ecx, byte [edx + esi]
movzx ebx, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 2]
shl ecx, 8
or ecx, ebx
shl ecx, 8
or ecx, edx
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x43ae70]
mov byte [eax + edi], dl
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x43ae70]
mov byte [eax + edi + 1], dl
mov edx, ecx
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x43ae70]
mov byte [eax + edi + 2], dl
and ecx, 0x3f
mov cl, byte [ecx + 0x43ae70]
add esi, 3
mov byte [eax + edi + 3], cl
mov ecx, dword [ebp + 0x10]
lea edx, [esi + 3]
add eax, 4
cmp edx, ecx
mov edx, dword [ebp + 0xc]
jbe 0x401025
lea ebx, [esi + 2]
cmp ebx, ecx
ja 0x40110c
lea ebx, [eax + 4]
cmp ebx, dword [ebp + 8]
ja 0x40110c
movzx ecx, byte [esi + edx]
movzx edx, byte [esi + edx + 1]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x43ae70]
mov byte [eax + edi], dl
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x43ae70]
shr ecx, 6
mov byte [eax + edi + 1], dl
and ecx, 0x3f
mov cl, byte [ecx + 0x43ae70]
mov byte [eax + edi + 2], cl
mov byte [eax + edi + 3], 0x3d
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 1]
cmp ebx, ecx
ja 0x401156
lea ebx, [eax + 4]
cmp ebx, dword [ebp + 8]
ja 0x401156
movzx ecx, byte [esi + edx]
movzx edx, byte [esi + edx + 1]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x43ae70]
shr ecx, 0xc
mov byte [eax + edi], dl
and ecx, 0x3f
mov cl, byte [ecx + 0x43ae70]
mov byte [eax + edi + 1], cl
mov word [eax + edi + 2], 0x3d3d
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401160
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
xor ecx, ecx
mov dword [ebp - 4], edi
test ebx, ebx
je 0x40129a
xor eax, eax
cmp ecx, ebx
jae 0x401195
mov edi, edi
movzx eax, byte [ecx + esi]
movzx eax, byte [eax + 0x444500]
cmp eax, 0x40
jbe 0x401195
inc ecx
cmp ecx, ebx
jb 0x401180
cmp byte [ecx + esi], 0x3d
je 0x40129a
mov edx, ecx
inc ecx
cmp edx, ebx
jae 0x40129a
mov edx, eax
and edx, 0x3f
add edx, edx
add edx, edx
cmp ecx, ebx
jae 0x4011d5
jmp 0x4011c0
movzx eax, byte [ecx + esi]
movzx eax, byte [eax + 0x444500]
cmp eax, 0x40
jbe 0x4011d5
inc ecx
cmp ecx, ebx
jb 0x4011c0
cmp byte [ecx + esi], 0x3d
je 0x40129a
mov edi, ecx
inc ecx
cmp edi, ebx
mov edi, dword [ebp - 4]
jae 0x40129a
cmp edi, dword [ebp + 0xc]
jae 0x401206
mov ebx, eax
shr ebx, 4
and bl, 3
or bl, dl
mov edx, dword [ebp + 8]
mov byte [edi + edx], bl
inc edi
mov dword [ebp - 4], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40129a
mov ebx, eax
and ebx, 0xf
shl ebx, 4
mov dl, byte [ecx + esi]
cmp dl, 0x3d
je 0x40122e
movzx eax, dl
movzx eax, byte [eax + 0x444500]
cmp eax, 0x40
ja 0x401217
cmp byte [ecx + esi], 0x3d
je 0x40129a
inc ecx
cmp edi, dword [ebp + 0xc]
jae 0x40124e
mov edx, eax
shr edx, 2
and dl, 0xf
or dl, bl
mov ebx, dword [ebp + 8]
mov byte [edi + ebx], dl
inc edi
mov dword [ebp - 4], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40129a
mov ebx, eax
and ebx, 3
shl ebx, 6
jmp 0x401260
mov dl, byte [ecx + esi]
cmp dl, 0x3d
je 0x401277
movzx eax, dl
movzx eax, byte [eax + 0x444500]
cmp eax, 0x40
ja 0x401260
cmp byte [ecx + esi], 0x3d
je 0x40129a
inc ecx
cmp edi, dword [ebp + 0xc]
jae 0x40128f
mov edx, dword [ebp + 8]
or al, bl
mov byte [edi + edx], al
inc edi
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 0x10]
cmp ecx, ebx
jb 0x401178
cmp edi, dword [ebp + 0xc]
jae 0x4012a6
mov eax, dword [ebp + 8]
mov byte [edi + eax], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4015e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4015f3
push 0x80004005
call fcn.00401050
push ebx
mov ebx, dword [0x415178]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401600
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [section..rdata]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401640
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x41a060]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [0x415020]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x4016ae
test ecx, ecx
je 0x4016a0
push ecx
call dword [0x41502c]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x4016bc
test ecx, ecx
je 0x401761
push ecx
jmp 0x40175b
mov esi, dword [0x415008]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x40172e
jmp 0x4016f0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00401640
mov edi, eax
test edi, edi
jne 0x40177d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x4016f0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401745
push eax
call dword [0x41502c]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [0x41500c]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401761
push eax
call dword [0x41502c]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004094b1
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40178c
push eax
call dword [0x41502c]
mov eax, edi
jmp 0x401763
Function at 0x404710
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41411b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x41a060]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a060]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x240]
xor edi, edi
push 0x206
lea eax, [esp + 0x2a]
push edi
mov dword [esp + 0x24], edi
push eax
mov word [esp + 0x30], di
call fcn.00409d90
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
push str.SoftwareKuaiwan
push 0x80000001
mov dword [esp + 0x28], edi
call dword [0x415020]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4047ce
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push str.path
push eax
mov dword [esp + 0x38], 0x208
mov dword [esp + 0x34], 1
call dword [0x415014]
mov eax, dword [esp + 0x14]
push eax
call dword [0x41502c]
lea ecx, [esp + 0x24]
push ecx
call dword [0x415178]
cmp eax, edi
jne 0x4047ed
push ebp
mov ecx, 0x41713c
call fcn.004065a0
jmp 0x4048a7
cmp word [esp + eax*2 + 0x22], 0x5c
mov esi, dword [0x415044]
je 0x404807
push 0x4173c0
lea edx, [esp + 0x28]
push edx
call esi
push 0x4173c4
lea eax, [esp + 0x28]
push eax
call esi
mov edx, dword [0x41b468]
mov eax, dword [edx + 0xc]
mov ecx, 0x41b468
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x23c], edi
call dword [0x41515c]
cmp eax, 0xffffffff
je 0x40486f
lea eax, [esp + 0x24]
lea edx, [eax + 2]
jmp 0x404850
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404850
sub eax, edx
sar eax, 1
lea edx, [esp + 0x24]
mov ebx, eax
push edx
lea eax, [esp + 0x1c]
call fcn.00407260
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
mov eax, esi
call fcn.00407350
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x238], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4048a7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, ebp
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004094b1
add esp, 0x228
ret