joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e930
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea edi, [eax + 0x70]
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
push 0x7d0
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x46e9a9
mov edx, 0x51ec24
call fcn.004a51a0
cmp byte [esi + 0x24], 0
mov byte [esi + 0x74], 1
je 0x46e993
cmp byte [esi + 0x25], 0
je 0x46e993
cmp byte [esi + 0x26], 0
je 0x46e993
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x46e993
mov eax, dword [esi + 4]
test eax, eax
je 0x46e993
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 0
mov ecx, esi
call edx
push ebx
mov ebx, dword [sym.imp.SensApi.dll_IsNetworkAlive]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call ebx
test eax, eax
jne 0x46e9e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46ea16
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x46ea16
mov al, byte [ebp - 4]
test al, 0x20
jne 0x46ea16
test al, 7
je 0x46ea16
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
push 0x7d1
mov ecx, edi
call eax
mov esi, eax
test esi, esi
je 0x46ea16
mov edx, 0x51ec40
call fcn.004a51a0
mov eax, esi
call fcn.004a5160
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
mov ecx, esi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
push 0x7d2
mov ecx, edi
call eax
mov esi, eax
test esi, esi
je 0x46ea46
mov edx, 0x51ec58
call fcn.004a51a0
mov eax, esi
call fcn.004a5160
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
mov ecx, esi
call eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call ebx
pop ebx
test eax, eax
jne 0x46ea7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46eaad
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x46eaad
mov al, byte [ebp - 4]
test al, 0x20
jne 0x46eaad
test al, 7
je 0x46eaad
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
push 0x7d3
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x46eaad
mov edx, 0x51ec6c
call fcn.004a51a0
mov eax, esi
call fcn.004a5160
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 1
mov ecx, esi
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46eee0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b0ab
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x230], 0
mov dword [ebp - 0x428], ebx
je 0x46f107
lea eax, [ebp - 0x424]
push eax
mov ecx, 0x51a1b4
call fcn.004595b0
mov dword [ebp - 4], 0
mov esi, dword [0x55ad8c]
call fcn.0046aad0
xor ecx, ecx
push 0x206
lea edx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], cx
push edx
cmp dword [eax + 0x14], ecx
je 0x46f044
call fcn.004e9520
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x428]
push edx
push 0x51a1b4
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], 0x102
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46efe7
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x218]
lea edi, [ebp - 0x424]
call fcn.00459570
mov edx, edi
push edx
call fcn.0046f6d0
jmp 0x46f0b1
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.004e9520
add esp, 0xc
push 1
push 0x26
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x420]
lea edi, [ebp - 0x424]
call fcn.00459570
mov edx, 0x51ed5c
mov eax, edi
call fcn.0045b3c0
jmp 0x46f0b1
call fcn.004e9520
add esp, 0xc
push 1
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f075
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
lea ecx, [ebp - 0x424]
push ecx
mov ebx, eax
call fcn.004594c0
push 0x14
push 0x51ed5c
lea ebx, [ebp - 0x424]
call fcn.0045b400
mov ebx, dword [ebp - 0x428]
mov eax, dword [ebx + 0x230]
mov edx, dword [ebp - 0x424]
mov eax, dword [eax + 0x78]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x55ad8c]
call fcn.0046aad0
mov edx, dword [ebp - 0x424]
call fcn.00474ba0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f107
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x46fb70
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
test esi, esi
jns 0x46fb8b
push 0x80070057
call fcn.0045a440
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x46fba7
mov eax, esi
mov ecx, edi
call fcn.00459710
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46fbce
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46fbd2
push ecx
push eax
call fcn.004e72e4
add esp, 8
test eax, eax
js 0x46fb81
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x46fb81
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
ret

Function at 0x46fe50
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b080
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1a0]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46ff6c
lea ecx, [ebp - 0x10]
xor edi, edi
push ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x46fed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x46ff6c
push edi
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x46ff6c
mov al, byte [ebp - 0x10]
test al, 0x20
jne 0x46ff6c
test al, 7
je 0x46ff6c
cmp byte [esi + 0x230], 0
jne 0x46ff6c
mov byte [esi + 0x230], 1
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.5.35.0327.1111
mov dword [ebp - 4], edi
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type3uidver_sstartmi_overendrls2envbitmovie
lea edi, [ebp - 0x14]
call fcn.004597f0
mov edi, dword [ebp - 0x14]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.0045cfd0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov esi, dword [0x55ad8c]
call fcn.0046aad0
mov esi, eax
mov byte [ebp - 4], 0
call fcn.004746f0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ff6c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4724c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50ae16
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5522c0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [0x55ad8c]
cmp dword [eax + 0x24], 0
je 0x472568
push 0x51d6f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x55ad70], eax
test eax, eax
je 0x47254c
push 0x51d724
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47254c
push 5
push 0
push 0
push str.http:__www.baofeng.com_permit.html
push 0x51d0ac
push 0
call eax
cmp eax, 0x20
jge 0x472675
push 1
call fcn.00458720
add esp, 4
test al, al
jne 0x472675
call fcn.004726a0
jmp 0x472675
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x26]
push edx
mov word [esp + 0x28], cx
call fcn.004e9520
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.004595b0
push 0xb
push str.License.txt
lea ebx, [esp + 0x1c]
mov dword [esp + 0x240], 6
call fcn.0045b400
mov eax, dword [0x55ad80]
mov esi, dword [esp + 0x14]
push str.RESOURCE_DATA
push 0x88
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47264a
push esi
mov ecx, edi
call fcn.00458970
add esp, 4
test al, al
je 0x47264a
lea edx, [esp + 0x18]
push edx
mov ecx, str.notepad.exe
call fcn.004595b0
mov byte [esp + 0x238], 7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.0045b400
mov eax, dword [esp + 0x18]
push eax
push 0
call fcn.00458900
mov byte [esp + 0x240], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47264a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x472675
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x4731f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [eax - 0xc], ebx
jne 0x473228
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47321f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
mov edi, eax
push edx
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x473265
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shrd edx, eax, 0x14
shr eax, 0x14
mov dword [ecx], edx
mov ebx, 1
push edi
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x473287
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473ba0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dd18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x51f91c
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x7c], eax
cmp eax, ebx
je 0x473bed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x473c09
push str.Storm2SetupMutex
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, ebx
je 0x473c37
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xc8], bl
jne 0x473c23
push ebx
push 0x51e5e4
push 0x51f940
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00473d30
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x474860
push ebx
push ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
call fcn.004e5b19
mov dword [esi + 0x70], eax
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
add esp, 0x18
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.5.35.0327.1111
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type1uidver_sstart1mi_overendrlsenvbitmovie
lea edi, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004597f0
mov edi, dword [ebp - 0x10]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x14], esp
mov ebx, esp
call fcn.0045cfd0
add eax, 0x10
mov dword [ebx], eax
call fcn.004746f0
mov ebx, esi
call fcn.00473e50
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x473cfa
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x473ce6
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473d13
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473d30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x118]
mov ebx, 0x114
push eax
mov esi, ecx
mov dword [ebp - 0x118], ebx
call edi
cmp dword [ebp - 0x114], 6
jne 0x473d80
cmp dword [ebp - 0x110], 1
jne 0x473d80
push 0x51fa04
mov ebx, 1
jmp 0x473daa
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], ebx
call edi
cmp dword [ebp - 0x114], 5
jne 0x473db3
mov ebx, 1
cmp dword [ebp - 0x110], ebx
jne 0x473db3
push 0x51fa08
lea eax, [esi + 0x64]
push eax
call fcn.004594c0
call fcn.0045d2b0
add esi, 0x68
mov ebx, 1
test al, al
je 0x473dcb
push 0x51fa08
jmp 0x473dd0
push 0x51fa04
push esi
call fcn.004594c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x474b20
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0x51a1b4
push edi
xor ebx, ebx
xor esi, esi
call fcn.004594c0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
push 0xffffffffffffffff
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x474b91
mov edx, dword [ebp - 4]
cmp edx, esi
jne 0x474b5f
xor eax, eax
jmp 0x474b73
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x474b64
sub eax, ebx
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.004594c0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474c80
Capabilities:
Create thread

Disassembly:
mov ecx, dword [ebx + 0xbc]
push esi
mov esi, dword [ebx + 0xb8]
cmp esi, ecx
je 0x474cb4
mov eax, ecx
sub eax, ecx
push edi
sar eax, 2
lea edi, [eax*4]
push edi
push ecx
push esi
call fcn.004e48b0
add esp, 0xc
add edi, esi
mov dword [ebx + 0xbc], edi
pop edi
push 0
push 0
push ebx
push 0x475040
push 0
push 0
call fcn.004e5b19
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x474ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x14], 0
call fcn.004e9520
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x474d4f
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x47f660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c146
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 0x5c]
sub eax, 0x10
call fcn.0045cfd0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x224], ebx
lea esi, [ebp - 0x220]
mov eax, edi
mov dword [ebp - 4], 0
call fcn.00474c50
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x220]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
neg eax
sbb eax, eax
push esi
inc eax
push ebx
mov ecx, edi
mov dword [edi + 0x44], eax
call fcn.0048b710
push 0
push ebx
mov dword [ebp - 0x21c], eax
call fcn.0045c770
add esp, 8
cmp dword [ebp - 0x21c], 0
jne 0x47f73f
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f712
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f735
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x3ea
jmp 0x47f7c8
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004e9520
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
add esi, 0xfffffff0
mov dword [edi + 0x40], eax
mov byte [ebp - 4], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x47f7a0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f7c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x487040
Capabilities:
Create thread
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aa18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
push edi
push 0x48cb40
push 0
push 0
call fcn.004e5b19
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x10], esi
call ebx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xb4]
sub eax, 0x10
call fcn.0045cfd0
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
je 0x4870bb
mov esi, eax
call fcn.00488bf0
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4870d0
add edi, 0xb8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1f41
call fcn.0048d490
call ebx
cmp byte [0x554092], 0
je 0x48712d
sub eax, dword [ebp - 0x14]
mov edi, 0x55ae78
push eax
push 0x525d6c
push 0x5200e4
call fcn.004597f0
mov eax, dword [0x55ae78]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x55ad7c]
test eax, eax
je 0x48712d
mov ecx, dword [0x55ae78]
mov edx, dword [ecx - 0xc]
push eax
push edx
push 2
push ecx
call fcn.004e84a4
mov ecx, dword [0x55ad7c]
push ecx
call fcn.004e59f8
add esp, 0x14
call ebx
mov edi, eax
test esi, esi
je 0x487145
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp byte [0x554092], 0
je 0x4871a1
sub eax, edi
push eax
push 0x525d84
push 0x5200e4
mov edi, 0x55ae78
call fcn.004597f0
mov edx, dword [0x55ae78]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x55ad7c]
test eax, eax
je 0x4871a1
mov ecx, dword [0x55ae78]
mov edx, dword [ecx - 0xc]
push eax
push edx
push 2
push ecx
call fcn.004e84a4
mov eax, dword [0x55ad7c]
push eax
call fcn.004e59f8
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4871c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret