joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c4a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004989a0
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x49c539
lea eax, [ebp - 0x14]
push eax
call fcn.0049acf0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x49c50f
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cfd33
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cfd33
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a6750
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x79c], 0
je 0x4a67bf
cmp dword [ebp + 8], 0x100
jne 0x4a67af
cmp word [ebp + 0xc], 0xd
jne 0x4a67af
cmp byte [esi + 0x7a2], 0
je 0x4a678e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4a67af
cmp byte [esi + 0x7a3], 0
jne 0x4a67af
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x4a67a8
push 1
push 0
push 0
push 0
push str.return
push esi
call fcn.0048e3b0
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x79c]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x4b39e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x4b3a07
cmp eax, edi
jge 0x4b39ff
push esi
call fcn.004af850
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4b3a30
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4b3a13
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4b3a4c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4b3a3d
xor dl, dl
jmp 0x4b3a42
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4b3a33
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4b3a81
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.004af760
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4b3a99
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.004af760
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4b3ab7
push edi
push ecx
push esi
call fcn.004b6c60
add esp, 0xc
test eax, eax
jne 0x4b3ab7
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004d90e0
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x4cb8f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x55b4e0]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x7f8], 0
cmp dword [edi + 4], 0
jne 0x4cb99d
lea eax, [ebp - 0xa4]
push eax
call fcn.004cb440
mov ecx, dword [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.00489ee0
push eax
mov ecx, edi
call fcn.00486ad0
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00493b60
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.00489a10
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004862a0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00485970
test bl, bl
je 0x4cb9e1
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
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.004cfd33
mov esp, ebp
pop ebp
ret 4

Function at 0x4cba30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00496550
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4cbac1
lea eax, [ebp - 0x14]
push eax
call fcn.004cb440
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4cba97
mov ecx, dword [esi + 0x800]
push 0
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cfd33
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cfd33
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cbbd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004989a0
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4cbc69
lea eax, [ebp - 0x14]
push eax
call fcn.004cb440
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4cbc3f
mov ecx, dword [esi + 0x800]
push 0
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cfd33
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cfd33
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4cf710
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00489f00
mov edi, eax
add esp, 8
test edi, edi
jne 0x4cf7b4
push eax
push 0x80
push 3
push eax
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cf7a9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x4cf7a9
push eax
mov dword [ebp + 8], edi
call fcn.00484cdd
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x4cf7a5
push edi
call fcn.004d18bf
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x4cf7b7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.004cf7e0
push edi
mov esi, eax
call fcn.004d18bf
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d66d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4fb255
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004dc5f5
mov dword [ebp - 0x14], eax
cmp dword [0x564474], esi
jne 0x4fb348
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4fb2d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4fb428
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4fb428
push 0x533218
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fb428
push eax
call ebx
push 0x533224
push edi
mov dword [0x564474], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x564478], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x56447c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x564484], eax
test eax, eax
je 0x4fb345
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x564480], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4fb36d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4fb360
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4fb382
push 4
pop eax
jmp 0x4fb42a
cmp dword [ebp - 0x14], esi
je 0x4fb382
push dword [0x564474]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4fb367
mov eax, dword [0x564480]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4fb3e0
cmp dword [0x564484], edi
je 0x4fb3e0
push eax
call ebx
push dword [0x564484]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4fb3e0
test eax, eax
je 0x4fb3e0
call ecx
test eax, eax
je 0x4fb3d5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4fb3d5
test byte [ebp - 8], 1
jne 0x4fb3e0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4fb410
mov eax, dword [0x564478]
cmp eax, edi
je 0x4fb40d
push eax
call ebx
test eax, eax
je 0x4fb40d
call eax
mov esi, eax
test esi, esi
je 0x4fb40d
mov eax, dword [0x56447c]
cmp eax, edi
je 0x4fb40d
push eax
call ebx
test eax, eax
je 0x4fb40d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x564474]
call ebx
test eax, eax
je 0x4fb428
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4fb42a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cfd33
mov esp, ebp
pop ebp
ret
Function at 0x401660
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esi], 0
mov dword [esi + 0x4b4], 0
mov dword [esi + 0x4c8], 0
call fcn.00401620
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x4016ad
mov ecx, esi
call fcn.00401c50
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Advapi32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LsaOpenPolicy
push eax
mov dword [esi + 0x4b4], eax
call edi
test eax, eax
mov dword [esi + 0x4c0], eax
je 0x401785
mov edx, dword [esi + 0x4b4]
push str.LsaRetrievePrivateData
push edx
call edi
test eax, eax
mov dword [esi + 0x4c4], eax
je 0x401785
mov eax, dword [esi + 0x4b4]
push str.LsaFreeMemory
push eax
call edi
test eax, eax
mov dword [esi + 0x4bc], eax
je 0x401785
mov ecx, dword [esi + 0x4b4]
push str.LsaClose
push ecx
call edi
test eax, eax
mov dword [esi + 0x4b8], eax
je 0x401785
mov edx, dword [esi + 0x4b4]
push str.ConvertSidToStringSidA
push edx
call edi
test eax, eax
mov dword [esi + 0x4cc], eax
je 0x401785
push str.Netapi32.dll
call ebx
push str.NetUserEnum
push eax
mov dword [esi + 0x4c8], eax
call edi
test eax, eax
mov dword [esi + 0x4d0], eax
je 0x401785
mov eax, dword [esi + 0x4c8]
push str.NetApiBufferFree
push eax
call edi
test eax, eax
mov dword [esi + 0x4d4], eax
je 0x401785
mov ecx, esi
call fcn.004018f0
mov ecx, esi
call fcn.00401a90
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4018f0
Capabilities:
Get user security identifier

Disassembly:
mov eax, 0x455c
call fcn.0041ec40
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x400
push edx
push 2
push ebx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
call dword [esi + 0x4d0]
test eax, eax
jne 0x401a7c
push ebp
mov ebp, 0x200
push edi
push ebp
mov dword [esp + 0x1c], ebp
call fcn.00433269
mov edi, eax
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jbe 0x401a16
mov eax, dword [esp + 0x10]
push 0x400
lea edx, [esp + 0x230]
mov ecx, dword [eax + ebx*4]
push ecx
push edx
call fcn.0041ec6f
add esp, 0xc
mov dword [esp + 0x24], ebp
test edi, edi
mov dword [esp + 0x18], ebp
je 0x401a09
lea eax, [esp + 0x2c]
test eax, eax
je 0x401a09
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x23c]
push edi
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x401a16
lea eax, [esp + 0x1c]
push eax
push edi
call dword [esi + 0x4cc]
test eax, eax
je 0x401a16
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x25cc]
push ecx
push str.RasDialParams__s0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x62c]
lea ecx, [esp + 0x25cc]
push eax
push ecx
mov ecx, esi
call fcn.004017f0
test eax, eax
je 0x401a09
lea edx, [esp + 0x62c]
push eax
push edx
mov ecx, esi
call fcn.00401ff0
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x401955
push edi
call fcn.00433292
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [esi + 0x4d4]
lea ecx, [esp + 0x62c]
push ecx
push str.L__RasDefaultCredentials0
mov ecx, esi
call fcn.004017f0
pop edi
pop ebp
test eax, eax
je 0x401a54
lea edx, [esp + 0x624]
push eax
push edx
mov ecx, esi
call fcn.00401ff0
lea eax, [esp + 0x624]
mov ecx, esi
push eax
push str.L__RasDefaultCredentials1
call fcn.004017f0
test eax, eax
je 0x401a7c
lea ecx, [esp + 0x624]
push eax
push ecx
mov ecx, esi
call fcn.00401ff0
pop esi
pop ebx
add esp, 0x455c
ret
Function at 0x401a90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x5e3c
call fcn.0041ec40
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
lea eax, [esp + 0x18]
push 0x1fa0
push eax
mov ebx, ecx
push str.ALLUSERSPROFILE
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3eac]
push str._sApplication_DataMicrosoftNetworkConnectionsPbk_rasphone.pbk
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x3ea8]
mov ecx, ebx
push eax
call fcn.00402360
lea ecx, [esp + 0x18]
push 0x1fa0
push ecx
push str.USERPROFILE
call esi
lea edx, [esp + 0x18]
lea eax, [esp + 0x3ea8]
push edx
push str._sApplication_DataMicrosoftNetworkConnectionsPbk_rasphone.pbk
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x3ea8]
push ecx
mov ecx, ebx
call fcn.00402360
lea edx, [esp + 0x18]
push 0x1fa0
push edx
push str.ALLUSERSPROFILE
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x3ea8]
push eax
push str._sApplication_DataMicrosoftNetworkConnectionsPbk_rasphone.pbk
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x3ea8]
mov ecx, ebx
push edx
call fcn.004025d0
lea eax, [esp + 0x18]
push 0x1fa0
push eax
push str.USERPROFILE
call esi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x3ea8]
push ecx
push str._sApplication_DataMicrosoftNetworkConnectionsPbk_rasphone.pbk
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x3ea8]
mov ecx, ebx
push eax
call fcn.004025d0
mov ecx, 0x528
xor eax, eax
lea edi, [esp + 0x1fb8]
mov dword [esp + 0x14], 0x14a0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1fb8], 0x108
push ecx
lea edx, [esp + 0x18]
lea eax, [esp + 0x1fbc]
push edx
push eax
push 0
push 0
call sub.RASAPI32.dll_RasEnumEntriesA
test eax, eax
jne 0x401c43
mov esi, dword [ebx]
mov dword [esp + 0x10], eax
test esi, esi
jle 0x401c43
push ebp
lea ebp, [ebx + 4]
mov eax, dword [ebp]
cmp dword [eax + 0x18], 0xffffffff
jne 0x401c30
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x401c30
xor eax, eax
test esi, esi
jle 0x401c02
lea edx, [ebx + 4]
mov ecx, dword [edx]
cmp dword [ecx + 0x18], edi
je 0x401c02
inc eax
add edx, 4
cmp eax, esi
jl 0x401bf3
cmp eax, esi
je 0x401c11
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x401bea
jmp 0x401c30
mov edx, edi
mov ecx, dword [ebp]
shl edx, 5
add edx, edi
lea eax, [esp + edx*8 + 0x1fc0]
push eax
push 1
call fcn.004015a0
mov ecx, dword [ebp]
mov dword [ecx + 0x18], edi
mov eax, dword [esp + 0x14]
mov esi, dword [ebx]
inc eax
add ebp, 4
cmp eax, esi
mov dword [esp + 0x14], eax
jl 0x401bd7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x5e3c
ret
Function at 0x404210
Capabilities:
Copy file
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43f2fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
lea eax, [esp + 0x28]
push esi
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.0043b818
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
add eax, 0xc0
push eax
call fcn.0043329d
mov eax, dword [0x453330]
mov dword [esp + 0xa8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x36]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x32]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x32]
push edx
mov edx, dword [esp + 0x34]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x24]
mov bl, 2
push str._04d_02d_02d__02d_02d
push eax
mov byte [esp + 0xc4], bl
call fcn.0042d847
add esp, 0x1c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x451860
push edx
call fcn.00433831
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 3
call fcn.0043392b
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8], bl
call fcn.00433528
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call esi
mov ecx, dword [esp + 0xb4]
push ecx
lea ecx, [esp + 0x10]
call fcn.004336b1
push 0x5c
lea ecx, [esp + 0x10]
call fcn.0042d4d8
cmp eax, 0xffffffff
je 0x404372
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0042d3e4
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 4
call fcn.00433661
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8], bl
call fcn.00433528
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0043392b
mov edx, dword [esp + 0x14]
push 0
push edx
call esi
lea eax, [esp + 0x14]
push 0x451860
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004337bd
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xac], 5
call fcn.00433661
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8], bl
call fcn.00433528
push str.Account.stg
lea ecx, [esp + 0x14]
call fcn.00433904
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0xb0]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x1c]
call fcn.00433fc5
push 0
push 0x8002
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xb4], 6
call fcn.004340d7
test eax, eax
je 0x404439
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
push 0
push 0xf89
lea ecx, [esp + 0x28]
stosb byte es:[edi], al
call fcn.00434279
lea eax, [esp + 0x40]
push 0x27
push eax
lea ecx, [esp + 0x28]
call fcn.0043422e
lea ecx, [esp + 0x20]
call fcn.004342f2
mov eax, dword [ebp + 0x8a0]
pop edi
inc eax
mov dword [ebp + 0x8a0], eax
jmp 0x404448
push 0x30
push esi
push 0x451874
mov ecx, ebp
call fcn.0043171d
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], bl
call fcn.0043401a
lea ecx, [esp + 0xc]
mov byte [esp + 0xa8], 1
call fcn.00433528
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 0
call fcn.00433528
lea ecx, [esp + 0x14]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00433528
mov ecx, dword [esp + 0xa0]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret 8
Function at 0x404760
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40480c
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x404803
dec eax
je 0x4047f0
dec eax
je 0x40479c
mov eax, 8
add esp, 0x98
ret
mov ecx, dword [esp + 8]
mov eax, 3
cmp ecx, 5
jne 0x4047cc
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x4047be
mov eax, 4
add esp, 0x98
ret
jbe 0x404810
mov eax, 5
add esp, 0x98
ret
cmp ecx, 6
jne 0x4047e2
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4047e4
mov eax, ecx
add esp, 0x98
ret
jb 0x404810
mov eax, 7
add esp, 0x98
ret
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
setne al
inc eax
add esp, 0x98
ret
xor eax, eax
add esp, 0x98
ret
mov eax, dword [esp]
add esp, 0x98
ret

Function at 0x404820
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xa8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40485a
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
push ecx
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xa8
ret
cmp dword [esp + 0x24], 2
jne 0x4048d0
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x404896
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
push ecx
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xa8
ret
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp]
push 0
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xa8
ret