joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483440
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
push edi
mov dword [0x55bc78], ecx
call fcn.00465dd0
mov ecx, dword [0x55bc74]
xor edi, edi
cmp ecx, edi
jne 0x483513
push 0x1fa8
call fcn.00532695
mov esi, eax
add esp, 4
cmp esi, edi
je 0x48350b
mov ecx, esi
call fcn.00524330
mov dword [esi + 0x1c], 0x5419b0
mov eax, dword [0x547570]
mov dword [esi + 0x20], eax
mov ecx, dword [0x547570]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x48], edi
lea ebx, [esi + 0x54]
mov ebp, 0x40
mov ecx, ebx
call fcn.0044da20
add ebx, 0x7c
dec ebp
jne 0x4834a0
lea ecx, [esi + 0x1f54]
call fcn.00446a90
mov edx, dword [0x547570]
lea ecx, [esi + 0x1f9c]
lea ebx, [esi + 0x38]
xor eax, eax
mov dword [ecx], edx
xor edx, edx
mov dword [ebx], eax
push 0x554e48
mov dword [esi], 0x54226c
mov dword [esi + 0x1c], 0x542268
mov dword [ebx + 4], edx
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [ebx + 8], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1fa4], edi
mov dword [ebx + 0xc], eax
call fcn.00433110
mov dword [esi + 0x1fa0], edi
mov ecx, esi
jmp 0x48350d
xor ecx, ecx
mov dword [0x55bc74], ecx
call fcn.00452ec0
mov eax, dword [0x55bc74]
mov ebp, dword [esp + 0x14]
cmp ebp, edi
mov dword [eax + 0x28], 0x4835f0
je 0x483537
mov ecx, dword [0x55bc74]
call fcn.00452ed0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x54cd00
call ebx
mov ecx, dword [0x55bc74]
push 0x54ccf8
mov dword [ecx + 0x1fa4], 1
call ebx
mov edx, dword [0x55bc74]
cmp dword [edx + 4], edi
jne 0x4835be
push str.Create_1_n
call ebx
mov eax, dword [0x55bc74]
mov dword [eax + 8], eax
lea esi, [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x55f3e4
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x55f418]
push 0x55f3e4
mov dword [esi + 8], eax
mov dword [0x55f418], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x55f3b8]
push edi
push 0x4141a0
push edi
push 0x85
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp ebp, edi
jne 0x4835d4
mov edx, dword [0x55bc74]
push 5
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x54ccdc
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x484400
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, ecx
xor edx, edx
push edi
lea ebp, [esi + 0x1c]
mov dword [esi + 4], edx
mov ecx, 0x16
xor eax, eax
mov edi, ebp
mov dword [esi + 0x18], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x128]
mov ecx, 0x44
mov dword [esi + 0x74], eax
xor eax, eax
lea edi, [esp + 0x14]
lea ebx, [esi + 0x278]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov word [ebx], dx
push ecx
mov word [esi + 0x78], dx
mov dword [ebp], 0x58
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x484479
mov eax, dword [esp + 0x14]
cmp eax, 5
jae 0x484480
cmp eax, 4
jne 0x484479
cmp dword [esp + 0x18], 0x5a
jae 0x484480
mov dword [ebp], 0x4c
mov edx, dword [esp + 0x12c]
mov ecx, dword [esp + 0x138]
lea eax, [esi + 0x78]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x134]
or eax, 0x880020
mov dword [esi + 0x3c], 0x104
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x13c]
mov dword [esi + 0x58], edx
mov dword [esi + 0x44], 0x100
mov dword [esi + 0x28], ecx
mov edx, dword [0x55f3b8]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x130]
test eax, eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x60], 0x4141a0
je 0x4844ec
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x18
Function at 0x48bd90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
push 0x54d12c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x48be73
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [esp + 0x1c]
mov bl, 0x73
push eax
push esi
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x25], 0x65
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x57
mov byte [esp + 0x28], 0x69
mov byte [esp + 0x29], 0x6e
mov byte [esp + 0x2a], 0x64
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], 0x77
mov byte [esp + 0x2d], 0x53
mov byte [esp + 0x2e], 0x75
mov byte [esp + 0x2f], 0x62
mov byte [esp + 0x30], 0x63
mov byte [esp + 0x31], 0x6c
mov byte [esp + 0x32], 0x61
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0
call edi
lea ecx, [esp + 0xc]
mov dword [0x55df6c], eax
push ecx
push esi
mov byte [esp + 0x14], 0x44
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x66
mov byte [esp + 0x17], 0x53
mov byte [esp + 0x18], 0x75
mov byte [esp + 0x19], 0x62
mov byte [esp + 0x1a], 0x63
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x61
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], 0x50
mov byte [esp + 0x20], 0x72
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x63
mov byte [esp + 0x23], 0
call edi
mov dword [0x55df70], eax
push 0x18
call fcn.00532695
add esp, 4
test eax, eax
je 0x48be8a
mov ecx, eax
call fcn.0048aa30
jmp 0x48be8c
xor eax, eax
mov edi, dword [esp + 0x34]
mov esi, eax
mov dword [0x55df78], eax
mov dword [esi + 0x10], edi
call fcn.00457150
test al, al
je 0x48beb3
mov dword [esi + 8], 0x303030
mov dword [esi + 0xc], 0xffffff
jmp 0x48bec7
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call ebx
push 8
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
push 2
mov ecx, esi
call fcn.0048b1c0
push 0x1f
push 0x1f
mov ecx, esi
call fcn.0048b240
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x48bd50
push 0xfffffffffffffffc
push edi
mov dword [0x55df74], eax
call esi
push 0x10
call fcn.00532695
add esp, 4
test eax, eax
je 0x48bf16
push eax
push 0xffffffffffffffeb
push edi
mov dword [eax], edi
call esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
xor eax, eax
push eax
push 0xffffffffffffffeb
push edi
call esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x48c670
Capabilities:
Print debug messages

Disassembly:
push ecx
mov eax, dword [0x547570]
mov ecx, 0x5476d0
test ecx, ecx
push esi
mov dword [esp + 4], eax
je 0x48c6d7
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x48c6d7
lea edx, [esi + esi + 0xe]
push edx
call fcn.00532695
add esp, 4
test eax, eax
je 0x48c6d7
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
inc esi
push esi
push 0x5476d0
push eax
mov dword [esp + 0x10], eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 4]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
mov eax, dword [esp + 4]
mov edx, dword [0x547574]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48c71a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x48c71a
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0xc]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48c750
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x48c750
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x48c8d0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push edi
push 0x2c
call fcn.00532695
xor edi, edi
add esp, 4
cmp eax, edi
je 0x48c8ee
mov ecx, eax
call fcn.0048bf30
mov ebx, eax
jmp 0x48c8f0
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], eax
mov edx, dword [ecx]
cmp ebp, edi
mov dword [ebx + 0x18], edx
jne 0x48c92c
lea ecx, [esp + 0x24]
call fcn.00510740
pop edi
pop ebp
xor eax, eax
pop ebx
ret
push esi
lea esi, [esp + 0x28]
neg esi
sbb esi, esi
lea eax, [esp + 0x2c]
and esi, eax
mov eax, dword [0x554e40]
cmp eax, edi
jne 0x48c951
push 0x554e40
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
jmp 0x48c957
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x20], edi
mov eax, dword [0x554e40]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [0x554e40]
cmp eax, edi
je 0x48c982
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x48c982
mov dword [0x554e40], edi
mov dword [ebx + 0x20], edi
mov eax, dword [esi]
cmp eax, edi
je 0x48c9fa
mov eax, dword [0x554e40]
cmp eax, edi
jne 0x48c9a1
push 0x554e40
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
jmp 0x48c9a7
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [0x554e40]
mov edx, dword [esi]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x48c9e0
mov eax, dword [0x554e40]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, edi
mov dword [ebx + 0x20], eax
mov esi, dword [esi]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x554e40]
test eax, eax
je 0x48c9f8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x48c9f8
mov dword [0x554e40], eax
xor edi, edi
mov edx, dword [ebp]
lea eax, [ebx + 4]
push eax
push 0x5433a4
push ebp
call dword [edx]
mov ecx, dword [ebp]
push ebp
call dword [ecx + 4]
lea eax, [ebx + 0x28]
mov dword [ebx + 0x24], edi
push eax
push edi
push ebx
push 0x48c8b0
push edi
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x28]
call fcn.00510740
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x48eb00
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x55df8c]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x547570]
push esi
lea edx, [esp + 0x1c]
push 0x548b44
push edx
mov dword [esp + 0x24], ecx
call fcn.00405cb0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push edi
push ebx
push ecx
call fcn.0048ee40
mov edx, dword [esp + 0x30]
push edx
call fcn.0053232e
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x20
cmp eax, 0xffffffff
je 0x48eb76
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x48eb76
cmp esi, eax
jle 0x48eb70
mov esi, eax
cmp esi, ecx
jge 0x48eb76
mov esi, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48eba7
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48eba7
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48ebd2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48ebd2
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x48ec20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x204
mov eax, dword [0x547570]
push esi
push edi
mov edi, dword [esp + 0x218]
test edi, edi
mov dword [esp + 8], eax
je 0x48ecf7
mov ecx, edi
shr ecx, 0x10
jne 0x48ecc5
lea edx, [esp + 0xc]
and edi, 0xffff
push 0x100
push edx
push edi
call fcn.00412380
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x48ec79
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.00405920
jmp 0x48ecf7
push 0x1ff
lea ecx, [esp + 0xc]
mov esi, 0x200
call fcn.00413470
test eax, eax
je 0x48ecb8
push esi
push eax
push edi
call fcn.00412380
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x48ecb8
add esi, 0x100
lea ecx, [esp + 8]
lea edx, [esi - 1]
push edx
call fcn.00413470
test eax, eax
jne 0x48ec90
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00405bb0
jmp 0x48ecf7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x48ecf7
push esi
lea ecx, [esp + 0xc]
call fcn.00405530
test eax, eax
je 0x48ecf7
lea ecx, [esi + esi]
mov esi, edi
mov edi, dword [esp + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
push ebx
push ebp
mov esi, 0xfb8
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x48ed12
cmp dword [eax - 4], esi
jge 0x48ed6b
mov ebx, dword [eax - 8]
cmp ebx, esi
jle 0x48edd8
test ebx, ebx
mov esi, ebx
jne 0x48edd8
mov eax, dword [0x547570]
lea ecx, [ebx + ebx + 2]
lea esi, [ebp + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebx
mov eax, dword [0x547574]
cmp ebp, eax
je 0x48ed6b
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48ed6b
push ebp
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [0x55df8c]
mov edx, dword [esp + 0x220]
push ecx
mov ecx, dword [esp + 0x21c]
push 0xfb8
push edx
push eax
mov eax, dword [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x547574]
mov esi, eax
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x48edcd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48edcd
mov eax, dword [esp + 8]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x204
ret
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.00532695
add esp, 4
test eax, eax
je 0x48ee04
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
jmp 0x48ed2c
xor eax, eax
jmp 0x48ed6f
Function at 0x48f290
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x55df9c]
sub esp, 0xc
test eax, eax
push esi
push edi
je 0x48f2f6
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48f2c8
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x48f2c8
push esi
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x48f2ec
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x48f2ec
push esi
call fcn.00532222
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 8
lea eax, [esp + 0xc]
xor esi, esi
push eax
call fcn.0048fd50
mov eax, dword [eax]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SHChangeNotifyRegister
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48f32f
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [0x547574]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48f361
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x48f361
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov edi, dword [esp + 0x20]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [esp + 0x20]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
mov dword [esp + 0x24], eax
je 0x48f392
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x547574]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x48f3b1
lea esi, [ebx - 0xc]
push esi
call ebp
test eax, eax
jg 0x48f3b1
push esi
call fcn.00532222
add esp, 4
mov eax, dword [0x547574]
lea edx, [edi - 0xc]
cmp edx, eax
pop ebx
je 0x48f3d1
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x48f3d1
push esi
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x20]
pop ebp
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x490d50
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x490d84
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], 0
test eax, eax
je 0x490d7d
cmp eax, 0xffffffff
je 0x490d7d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
pop esi
ret

Function at 0x490de0
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ecx
mov eax, dword [0x55dfa0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], edi
jne 0x490e22
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x490e1a
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x490e1a
push esi
call fcn.00532222
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
push ebx
lea ebx, [edi + 0x3c]
mov dword [edi + 0x34], edx
push ebp
mov eax, dword [ebx]
cmp eax, esi
je 0x490ec9
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
mov edx, dword [0x547574]
jge 0x490e53
lea ebp, [eax - 0xc]
cmp ebp, edx
jne 0x490e5c
cmp dword [esi - 0xc], 0
lea ebp, [esi - 0xc]
jge 0x490e98
mov ebp, dword [esi - 8]
mov ecx, ebx
push ebp
call fcn.00405660
test eax, eax
je 0x490ec9
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
jmp 0x490ec9
add eax, 0xfffffff4
cmp eax, edx
je 0x490ec0
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x490eb8
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [0x547570]
mov dword [ebx], ecx
push ebp
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, edi
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], eax
call fcn.00490d50
mov ebx, dword [ebx]
mov eax, dword [ebx - 8]
test eax, eax
je 0x490f10
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490f10
test al, 0x10
je 0x490f10
lea ecx, [edi + 0x28]
push ecx
push 0
push edi
push 0x490f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
mov eax, dword [0x547574]
lea edx, [esi - 0xc]
pop ebp
cmp edx, eax
pop ebx
je 0x490f35
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x490f35
push esi
call fcn.00532222
add esp, 4
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x10
Function at 0x491750
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1210
call fcn.00532230
push ebp
push esi
mov esi, dword [esp + 0x121c]
push edi
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [esi + eax*2]
mov eax, dword [0x554e0c]
mov dword [esp + 0x21c], eax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x220]
cmp esi, ebp
rep stosd dword es:[edi], eax
jae 0x491873
push ebx
cmp word [esi], 0x25
jne 0x491826
mov dword [esp + 0x14], esi
add esi, 2
cmp esi, ebp
mov ebx, esi
jae 0x491849
cmp word [esi], 0x25
jne 0x4917f2
mov word [esi], 0
mov ecx, dword [0x554e0c]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1c]
push 0x208
push edx
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4917fb
mov word [esi], 0x25
add esi, 2
cmp esi, ebp
jb 0x4917b6
jmp 0x491849
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x220]
push ecx
push edx
mov word [eax], 0x25
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [esp + 0x10], 1
mov word [esi], 0x25
jmp 0x491849
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov cx, word [esi]
mov word [esp + eax*2 + 0x220], cx
mov word [esp + eax*2 + 0x222], 0
add esi, 2
cmp esi, ebp
jb 0x49179b
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x491873
mov eax, dword [esp + 0x1220]
lea edx, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1210
ret

Function at 0x491880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4918ae
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x4918aa
call esi
cmp eax, 3
je 0x4918aa
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
and al, 0x10
pop esi
neg al
sbb eax, eax
neg eax
inc eax
ret
Function at 0x491940
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x83c
push ebx
mov edx, dword [esp + 0x844]
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xc]
push edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x85c]
mov ecx, dword [0x554e0c]
or ah, 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], ecx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x2c], str._UserProfile_
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x48]
push 0x2e
push eax
call fcn.00532e8a
add esp, 8
test eax, eax
je 0x4919bd
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], ecx
mov eax, dword [0x55dfa8]
xor esi, esi
mov ebx, dword [eax - 8]
cmp ebx, esi
je 0x491a39
mov ecx, dword [eax - 0xc]
push ebp
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x4919dc
cmp dword [eax - 4], esi
jge 0x491a32
cmp ebx, esi
jle 0x4919e6
jne 0x491a74
mov edi, dword [0x547570]
lea ecx, [ebx + ebx + 2]
lea esi, [ebp + 0xc]
mov eax, ecx
mov dword [0x55dfa8], edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x55dfa8]
mov dword [ecx - 8], ebx
mov eax, dword [0x547574]
cmp ebp, eax
je 0x491a2d
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x491a2d
push ebp
call fcn.00532222
add esp, 4
mov eax, dword [0x55dfa8]
xor esi, esi
mov dword [esp + 0x28], eax
pop ebp
mov edx, dword [esp + 0x850]
mov eax, dword [esp + 0x854]
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
add esp, 0x83c
ret
lea edx, [ebx + ebx + 0xe]
push edx
call fcn.00532695
add esp, 4
cmp eax, esi
je 0x491a9e
mov dword [eax], 1
mov word [eax + ebx*2 + 0xc], si
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea edi, [eax + 0xc]
jmp 0x4919ec
xor eax, eax
jmp 0x491a34