joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.0041b950
test al, al
jne 0x4c3cf0
mov eax, 1
jmp 0x4c3e6d
push 0x10000
call fcn.004d7786
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.004d9580
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4c3e46
test ebx, ebx
je 0x4c3e46
cmp dword [eax], 0xffffffff
je 0x4c3e46
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c3e46
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x4c3e3c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.004d18c0
test al, al
je 0x4c3e2f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4c3de2
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x4c3dd1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x4c3e3c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x4c3dec
add ebx, eax
cmp ebx, 0x8000
je 0x4c3dfc
cmp dword [ebp - 0x28], 0xf
ja 0x4c3e25
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x4c3d80
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4c3e1e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x4c3e06
mov esi, 4
jmp 0x4c3e57
mov esi, 5
jmp 0x4c3e57
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x4c3e57
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x4c3e51
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x4c3e57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4c3e6b
push ebx
call fcn.004d6fb6
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d6ca5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cbc60
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4cbcc5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cbca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4cbcc5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004d6ca5
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004d6ca5
add esp, 8
ret 4
Function at 0x4cbe60
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515da8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5500a4]
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 ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4cbea9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4cbffb
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4cbfc6
test eax, eax
je 0x4cbfc6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4cbfc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4cbf4b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cbf3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4cbf4b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4cbf59
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.0040a8b0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4cbfc6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4cbf04
jmp 0x4cbfc9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4cbff2
test edx, edx
je 0x4cbfee
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4cbec0
mov al, 1
jmp 0x4cbffd
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4cbffb
mov dword [ecx], eax
xor al, al
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.004d6ca5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ce580
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516368
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5500a4]
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
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.0040a730
test al, al
jne 0x4ce5da
cmp byte [ebp + 8], al
jne 0x4ce5e1
mov eax, dword [ebx]
test eax, eax
je 0x4ce741
cmp byte [eax + 0xa5], 0
je 0x4ce741
xor al, al
jmp 0x4ce757
mov ecx, esi
call fcn.0040a730
test al, al
jne 0x4ce741
push esi
call fcn.004140d0
add esp, 4
test al, al
je 0x4ce609
push esi
push edi
call fcn.004ce1b0
jmp 0x4ce73d
push 0xb
mov ecx, esi
call fcn.0040a750
push eax
mov ecx, edi
call fcn.0040a750
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
je 0x4ce62e
mov al, 1
jmp 0x4ce73d
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x59], 0
call fcn.0040a890
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0041c200
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
call fcn.0040a890
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0041c200
test al, al
jne 0x4ce67b
cmp byte [ebp - 0x60], al
je 0x4ce6b7
push 0xb
lea ecx, [ebp - 0x40]
call fcn.0040a750
push eax
lea ecx, [ebp - 0x58]
call fcn.0040a750
push eax
call ebx
test eax, eax
je 0x4ce6b7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040a7c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040a7c0
mov al, 1
jmp 0x4ce73d
mov ecx, esi
call fcn.0041bba0
cmp eax, 0xffffffff
je 0x4ce720
push esi
lea ecx, [ebp - 0x28]
call fcn.0040a8b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0041bfc0
test al, al
je 0x4ce714
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041bc40
test al, al
je 0x4ce714
mov edx, esi
mov ecx, edi
call fcn.0041bc40
lea ecx, [ebp - 0x28]
test al, al
je 0x4ce70d
call fcn.0041bd50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040a7c0
jmp 0x4ce695
mov edx, esi
call fcn.0041bc40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040a7c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040a7c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040a7c0
xor al, al
test al, al
jne 0x4ce755
push edi
call fcn.004140d0
add esp, 4
test al, al
je 0x4ce755
mov ecx, edi
call fcn.0041bd50
mov al, 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.004d6ca5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d2180
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004d9580
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d21e7
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4d21d0
jne 0x4d21e7
cmp dword [esp + 8], 0
jbe 0x4d21e7
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004d6ca5
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004d6ca5
add esp, 0x118
ret

Function at 0x4d2200
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004d9580
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4d2255
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004d6ca5
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004d6ca5
add esp, 0x118
ret
Function at 0x4d4380
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x258]
sub esp, 0x258
push 0xffffffffffffffff
push 0x516f39
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0x254], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x260]
xor eax, eax
mov edi, dword [ebp + 0x264]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x18]
push 0xa
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
push str.config.ini
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
call fcn.0040ab90
mov byte [ebp - 4], 2
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp]
push edi
push eax
call fcn.00418310
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.0040a7c0
lea eax, [ebp]
push eax
call fcn.004140d0
add esp, 4
test al, al
je 0x4d44ac
push 0x20a
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.004d9580
add esp, 0xc
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
cmovae eax, dword [ebp]
push eax
push 0x104
lea eax, [ebp + 0x48]
push eax
push 0x528a34
push str.Version
push str.Plugin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp + 0x48]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d4490
sub ecx, edx
lea eax, [ebp + 0x48]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.0040ab90
cmp dword [ebp + 0x40], 0
jne 0x4d44db
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x528a34
mov word [esi], ax
call fcn.0040ab90
mov dword [ebp - 0x10], 1
jmp 0x4d4519
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.00418310
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, eax
push 1
push 0x52a870
call fcn.0040c160
push eax
mov ecx, esi
call fcn.0040a8b0
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.0040a7c0
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0040a7c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.0040a7c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x254]
xor ecx, ebp
call fcn.004d6ca5
lea esp, [ebp + 0x258]
pop ebp
ret
Function at 0x4d47e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.004d9580
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4d4852
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4d486a
mov eax, dword [esp + 4]
test eax, eax
je 0x4d4852
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004d6ca5
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d4872
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0040ab90
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x4d489e
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.004d6ca5
add esp, 0x418
ret
Function at 0x4d51b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517128
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5500a4]
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 eax, ecx
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4d51f7
xor al, al
jmp 0x4d52d7
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push edi
mov ecx, eax
call fcn.004d4f80
test al, al
je 0x4d5288
cmp byte [ebp + 0x14], 0
je 0x4d524b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00412e10
add esp, 8
test al, al
je 0x4d5288
mov bl, 1
jmp 0x4d52c6
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4d5255
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
cmp edx, dword [esi + 0x10]
jne 0x4d5285
test edx, edx
je 0x4d5281
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4d5285
add ecx, 2
sub edx, 1
jne 0x4d5270
mov bl, 1
jmp 0x4d52c6
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
je 0x4d5298
mov byte [eax + 1], 1
mov bl, 1
jmp 0x4d52c6
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4d52a3
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x4d52ab
mov ebx, dword [ebx]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4d5281
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a7c0
mov al, bl
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.004d6ca5
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4d5320
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x550010], 0
jne 0x4d53a2
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004d9580
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d5383
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, section..data
call fcn.0040ab90
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004d6ca5
add esp, 0x214
ret
Function at 0x4d5450
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x517158
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5521c4]
test eax, eax
jle 0x4d54a1
inc eax
mov dword [0x5521c4], eax
mov al, 1
jmp 0x4d5593
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0041c2d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041ce90
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041c350
test bl, bl
je 0x4d5583
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4d5583
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x4d557c
inc dword [0x5521c4]
mov eax, dword [edi]
test eax, eax
je 0x4d5526
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x550028], 0
mov dword [ebp - 0x10], 0
jne 0x4d557c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.004d9580
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x550018
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0040a760
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4d5591
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004d6ca5
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x4f67a3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f6463
Function at 0x4012b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x28], 1
cmp dword [ebp + 0xc], 0
jne 0x4012c7
xor al, al
jmp 0x4013f1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4012ee
mov byte [ebp - 0x28], 0
jmp 0x4013ef
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x40131f
mov byte [ebp - 0x28], 0
jmp 0x4013ed
mov word [ebp - 0x24], 0x4d42
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
lea ecx, [ecx + eax*4 + 0xe]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x14]
mov dword [ebp - 0x22], ecx
mov word [ebp - 0x1e], 0
mov word [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
lea ecx, [ecx + eax*4 + 0xe]
mov dword [ebp - 0x1a], ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0xe
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40137b
mov byte [ebp - 0x28], 0
jmp 0x4013eb
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
lea edx, [ecx*4 + 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4013a7
mov byte [ebp - 0x28], 0
jmp 0x4013e9
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4013d8
mov byte [ebp - 0x28], 0
jmp 0x4013e7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [ebp - 0x28]
jmp 0x4013f1
jmp 0x4013d8
jmp 0x4013d8
jmp 0x4013d8
jmp 0x4013d8
jmp 0x4013d8
mov esp, ebp
pop ebp
ret
Function at 0x4013f5
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a1f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x28], 0x4000
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401441
xor eax, eax
jmp 0x4015db
mov edx, dword [ebp - 0x28]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004052d0
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.MPR.dll_WNetEnumResourceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40159e
mov dword [ebp - 0x20], 0
jmp 0x401496
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jae 0x40159c
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0xc]
and ecx, 1
cmp ecx, 1
jne 0x401565
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x14]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004021d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x38]
push edx
call fcn.00401866
add esp, 4
mov byte [ebp - 0x30], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00402490
mov eax, dword [ebp - 0x30]
and eax, 0xff
test eax, eax
je 0x401565
push 8
call fcn.004052bd
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x40], 0
je 0x401529
mov ecx, dword [ebp - 0x40]
call fcn.00402230
mov dword [ebp - 0x44], eax
jmp 0x401530
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x20]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x14]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.00402260
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004024d0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x20]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0xc]
and eax, 2
cmp eax, 2
jne 0x401597
mov ecx, dword [ebp - 0x20]
shl ecx, 5
mov edx, dword [ebp - 0x10]
add edx, ecx
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004013f5
jmp 0x40148d
jmp 0x4015a9
cmp dword [ebp - 0x18], 0x103
je 0x4015a9
jmp 0x4015b6
cmp dword [ebp - 0x18], 0x103
jne 0x401450
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x24]
push edx
call sub.MPR.dll_WNetCloseEnum
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4015d6
xor eax, eax
jmp 0x4015db
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8