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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x445631
cmp dword [edi + 0x54], 0
jne 0x445631
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00447763
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004455ce
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44a6f3
Capabilities:
Create http request

Disassembly:
mov edi, edi
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]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x44a71e
call fcn.00447763
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_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x44a741
push eax
push dword [esi + 4]
call fcn.0044a679
push esi
push eax
mov ecx, 0x4a1958
call fcn.0044a300
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x44b1c1
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4784b1
call fcn.00459827
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.0044b181
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401407
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_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x44b227
push eax
push dword [esi + 8]
call fcn.0044a679
push dword [esi + 0xc]
mov ecx, 0x4a1958
push eax
call fcn.0044a300
mov eax, esi
call fcn.004598ff
ret 0x18

Function at 0x4596d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49e53c]
jne 0x4596e0
repz ret
jmp fcn.00467fdd
Function at 0x4685e7
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.0045b812
and dword [ebp - 4], 0
cmp dword [0x4a2848], 0
mov ebx, eax
jne 0x468698
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x468749
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x468749
push eax
call fcn.0045b7a0
mov dword [esp], 0x484ae0
push edi
mov dword [0x4a2848], eax
call esi
push eax
call fcn.0045b7a0
mov dword [esp], 0x484acc
push edi
mov dword [0x4a284c], eax
call esi
push eax
call fcn.0045b7a0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a2850], eax
call esi
push eax
call fcn.0045b7a0
pop ecx
mov dword [0x4a2858], eax
test eax, eax
je 0x468698
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045b7a0
pop ecx
mov dword [0x4a2854], eax
mov eax, dword [0x4a2854]
cmp eax, ebx
je 0x4686f0
cmp dword [0x4a2858], ebx
je 0x4686f0
push eax
call fcn.0045b81b
push dword [0x4a2858]
mov esi, eax
call fcn.0045b81b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4686f0
test edi, edi
je 0x4686f0
call esi
test eax, eax
je 0x4686e7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4686e7
test byte [ebp - 0xc], 1
jne 0x4686f0
or dword [ebp + 0x10], 0x200000
jmp 0x468729
mov eax, dword [0x4a284c]
cmp eax, ebx
je 0x468729
push eax
call fcn.0045b81b
pop ecx
test eax, eax
je 0x468729
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x468729
mov eax, dword [0x4a2850]
cmp eax, ebx
je 0x468729
push eax
call fcn.0045b81b
pop ecx
test eax, eax
je 0x468729
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a2848]
call fcn.0045b81b
pop ecx
test eax, eax
je 0x468749
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46874b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41d700]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40105d
cmp word [0x41d702], bx
je 0x40104b
call eax
mov dword [0x41d700], eax
push eax
call fcn.00402293
push eax
call fcn.00408518
pop ecx
jmp 0x4010f0
push 0x27
call fcn.00402293
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x4010c1
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40108a
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010e4
push ebx
push 3
call fcn.00402293
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010f1
lea eax, [ebp - 0x904]
push eax
call fcn.00408518
pop ecx
call fcn.00404514
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401318
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.00411499
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.004112ce
push 0x5c
mov ecx, edi
call fcn.0040117e
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4012bd
push edi
push edi
mov dword [0x41d704], esi
mov dword [0x41d70c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41d74c], 2
mov dword [0x41d708], eax
je 0x401375
call fcn.0040846a
push 0xffffffffffffffff
push dword [0x41d708]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41d70c]
cmp eax, edi
mov dword [0x41d7ec], edi
je 0x4013c4
cmp eax, 1
je 0x4013b8
cmp eax, 2
je 0x4013b4
cmp eax, 3
je 0x4013b0
cmp eax, 0x67
jle 0x4013ab
cmp eax, 0x6a
jle 0x401428
push eax
push 0x14
jmp 0x4013fb
push 0x12
jmp 0x4013ba
push 0x13
jmp 0x4013ba
push 0x11
push edi
call fcn.004085fc
pop ecx
pop ecx
jmp 0x401428
cmp dword [0x41d7f4], edi
jne 0x401428
lea eax, [ebp + 8]
push eax
push dword [0x41d708]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4013eb
cmp ecx, edi
jne 0x4013eb
xor eax, eax
jmp 0x40142d
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4013fe
push ecx
push 0x21
push edi
jmp 0x401420
and ecx, 0xffff
cmp ecx, 0xe
jne 0x401412
cmp dword [0x41d750], 0xffffffff
je 0x401428
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004085fc
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401a8a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401ab5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401acb
test al, 0x10
jne 0x401acb
push esi
jmp 0x401aab
xor eax, eax
inc eax
pop esi
ret

Function at 0x401ed5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41d710]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401f19
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401f3f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401f2a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401f3f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x401fb9
cmp dword [0x41d720], 0
jne 0x401fb7
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41d720], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41d710]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401fac
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401fb7
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402293
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41d0a0], ebx
je 0x4022c6
mov eax, 0x41d0a0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4022c6
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41d0a0]
cmp dword [eax], ebx
jne 0x4022af
shl esi, 4
cmp dword [esi + 0x41d0a0], ebx
jne 0x4022db
mov eax, 0x419558
jmp 0x40244d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40238b
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402382
call edi
test eax, eax
jne 0x402382
mov eax, dword [esi + 0x41d0ac]
test eax, eax
je 0x402377
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402374
push dword [esi + 0x41d0ac]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41d0ac], edi
jmp 0x40238a
push edi
jmp 0x402385
mov eax, dword [ebp - 8]
mov dword [esi + 0x41d0ac], eax
jmp 0x40238b
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x41d0ac]
test eax, eax
jne 0x40244c
mov ebx, dword [esi + 0x41d0a4]
lea edi, [esi + 0x41d0a8]
cmp dword [edi], eax
je 0x4023c1
call fcn.0040223d
cmp eax, dword [0x41a374]
jne 0x4023c1
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41d074], 0xffffffff
pop ecx
mov dword [esi + 0x41d0ac], eax
jne 0x40242c
and dword [0x41d074], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x41d710]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40242c
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41d074], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41d0ac]
push edi
push ebx
push 0
push dword [0x41d074]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41d0ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40255a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4025b7
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x402644
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041129f
push 0x419660
lea ecx, [ebp - 0xc]
call fcn.00411326
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402720
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004112ce
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040117e
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00411326
test byte [ebp - 0x25c], 0x10
je 0x4026eb
push 0x41965c
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402703
push 0x419654
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402703
push dword [ebp - 0xc]
call fcn.00402644
pop ecx
jmp 0x4026ff
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x402745
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402745
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40268f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402745
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402745
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40274f
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402755
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41d800], 0
je 0x40276c
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402788
xor eax, eax
inc eax
jmp 0x4027b9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4027b2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4027ae
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4027b9
xor eax, eax
jmp 0x4027b9
push esi
call fcn.00402644
pop ecx
pop esi
leave
ret

Function at 0x403101
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov edi, eax
mov dword [ebp - 4], eax
call fcn.0041129f
push 0
lea ecx, [ebp - 0x18]
call fcn.00402cfa
mov esi, eax
movzx eax, word [ebx + edi*2 - 2]
cmp ax, 0x5c
je 0x40313f
cmp ax, 0x2f
jne 0x40316d
and word [esi + edi*2 - 2], 0
dec edi
mov dword [ebp - 4], edi
jmp 0x40316d
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x403160
cmp ax, 0x5c
je 0x403160
dec edi
test edi, edi
jg 0x40314b
test edi, edi
je 0x403211
and word [esi + edi*2], 0
push esi
call fcn.00401a8a
test eax, eax
pop ecx
je 0x40315c
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4031a4
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00402dfe
test eax, eax
pop ecx
pop ecx
je 0x4031a4
xor esi, esi
jmp 0x403234
push esi
call fcn.00401a8a
test eax, eax
pop ecx
jne 0x4031fe
push esi
push 0xc
push 1
call fcn.004085fc
add esp, 0xc
jmp 0x40319d
mov eax, dword [ebp - 4]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
lea ebx, [esi + edi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4031f2
jmp 0x4031f1
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x4031f8
cmp ax, 0x2f
je 0x4031f8
inc edi
cmp word [esi + edi*2], cx
jne 0x4031e1
mov word [esi + edi*2], cx
jmp 0x4031a4
cmp edi, dword [ebp - 4]
jl 0x4031be
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403258
cmp dword [ebp - 4], 2
jne 0x403241
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x403241
cmp ax, 0x7a
ja 0x403241
cmp word [ebx + 2], 0x3a
jne 0x403241
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403258
push ebx
push 0xc
push 1
call fcn.004085fc
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403569
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00410f2d
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4035a7
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402cfa
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
mov dword [edi + 4], esi
and word [eax + esi*2], 0
mov eax, edi
pop edi
pop esi
ret

Function at 0x403773
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00410f2d
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402cfa
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402cfa
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004019df
pop ecx
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40452a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00410f2d
lea ecx, [ebp - 0x18]
call fcn.00410f2d
push 0x3c
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x40457c
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404589
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00403ea7
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004112ce
cmp dword [ebp - 8], edi
jne 0x4045b9
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, ebx
jmp 0x404604
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4045f2
test dword [ebp + 0xc], 0x10000
jne 0x4045e7
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x404667
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00410f2d
push 2
mov ecx, esi
call fcn.00402cfa
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
and word [ecx], 0
test eax, eax
jbe 0x4046ba
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402cfa
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004019df
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop ecx
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402cfa
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004019df
add esp, 0x10
mov dword [esi + 4], eax
and word [edi + eax*2], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40470f
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x4046ca
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404716
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41d7c8], esi
jle 0x40476a
mov eax, dword [0x41d7c4]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00410f50
lea eax, [ebp - 0xc]
push eax
call fcn.00403bb5
mov eax, dword [0x41d7c4]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41d7c8]
pop ecx
jl 0x404727
pop esi
leave
ret