joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e63c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.004f0ae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004024f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00474193
mov esp, ebp
pop ebp
ret

Function at 0x4e6427
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.004f0ae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x26
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004024f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00474193
mov esp, ebp
pop ebp
ret

Function at 0x4e648d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.004f0ae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004024f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00474193
mov esp, ebp
pop ebp
ret
Function at 0x4e64f2
Capabilities:
Check mutex on windows

Disassembly:
push 0x2ac
mov eax, 0x555b85
call fcn.00513ea1
mov dword [ebp - 0x2ac], ecx
push 0x67
pop ecx
mov esi, str.hlcYyUGG2dQX8RTcVuHaJLgyzqzgAnb8GYpTwlZWuYw4js12TDzO9PwrZrVFXZtFjjTXkiijo4F0nufByrCdHkNC0Cm77e2nypTViCyHRtbW2qHBoN9bTylYWLpP64JeJMbUR9JgqxhQp5EwZyjk2Ipa9luxSsYOV8a9ANELqYusxNZJQxdmpPq4L2gcacYUI3jr6e7YXXi1rar2C0m9RmOKYIZUYGguNnV4jSvpAIgPbQCH1q9crhWaKtyBIex8CPz78eqoAjFKIbRzDlLltlJuBllDfcbNgVJP4SrrdNuV9txiaVtXWpyWS88zXvvRUPlq3m51rA6LgVSlaafwTFPFKyZNaXU4RmcvIRLe60pAaiLpgEEFDSokDXLUqSpmWeblKVUUc9SDHjSK0zTjuNjzUdS
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x290]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x38
pop ecx
mov esi, str.7f3NRTxU0iEIRc2jxqVgcLoNyCfvgLFcWuCc1v9w0Mjm0JHcGsIuXC6nryWqOQTSd9L31kUeyiQanwwZ4PHCnl6ZSDPb2dHlam5C2n0oWaxqzpGBTs03IjjxTsDdxsifMTKP4osUzWygSewPTLDTCixrvz6emAUR1VNNuJhlYwzZ1apBK1AFL3Rv7mJt6e7XBg52rfgLIKkvlffNjFuSYkC6zeLP2yI9w
mov dword [ebp - 0x2b8], eax
lea edi, [ebp - 0xf4]
mov dword [ebp - 0x2b4], eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2b0], eax
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x290]
push eax
call fcn.004057d0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00408170
push 0
push 1
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0
call fcn.004096c0
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004057d0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00408170
push 0
push 1
lea ecx, [ebp - 0x2a8]
call fcn.004096c0
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [ebp - 0x2ac]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [ebx + 4], ecx
lea ecx, [ebp - 0x2b8]
call fcn.0047920e
mov eax, ebx
call fcn.00513e4b
ret 4

Function at 0x4e7534
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x4e7d16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4e7d75
push esi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.004741dd
pop ecx
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.004f0560
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7feb
Capabilities:
Create directory

Disassembly:
push 0x49c
mov eax, 0x555ddf
call fcn.00513ea1
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4e800a
xor eax, eax
jmp 0x4e818e
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004f0ae0
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.005014b0
push edi
xor esi, esi
call fcn.00500c00
mov edi, eax
mov dword [ebp - 0x214], 7
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x218], ecx
mov word [ebp - 0x228], ax
push 0x100
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 4], ecx
push eax
call fcn.004f0ae0
add esp, 0x24
cmp byte [ebp + edi - 0x111], 0x5c
je 0x4e8079
mov byte [ebp + edi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
je 0x4e817c
mov al, byte [ebp + esi - 0x110]
cmp al, 0x3a
jne 0x4e8099
add esi, 2
jmp 0x4e816e
cmp al, 0x5c
jne 0x4e816d
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004f0560
add esp, 0xc
cmp esi, 0x100
jae 0x4e81aa
lea eax, [ebp - 0x210]
mov byte [ebp + esi - 0x210], 0
push eax
lea ecx, [ebp - 0x240]
call fcn.004057d0
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x258]
mov ecx, ebx
push eax
call fcn.004e86fc
push eax
lea ecx, [ebp - 0x228]
call fcn.00403fe0
push 0
push 1
lea ecx, [ebp - 0x258]
call fcn.00402590
push 0
push 1
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
call fcn.004096c0
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x4a8]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4e816d
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4e8196
inc esi
cmp byte [ebp + esi - 0x110], 0
jne 0x4e8086
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00402590
xor eax, eax
inc eax
call fcn.00513e4b
ret 4
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00402590
jmp 0x4e8003
call fcn.004746b5
int3

Function at 0x4e86ce
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x4e86e0
cmp edx, 1
jne 0x4e86fb
xor eax, eax
push eax
push eax
push ecx
push 0x4e846c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x4ea124
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x4ea1b9
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x4ea169
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004f0560
push esi
push esi
push dword [ebp - 0x14]
call fcn.004e940d
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x4ea192
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.004f0560
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x4ea160
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474193
mov esp, ebp
pop ebp
ret

Function at 0x4ed052
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [eax + 0x210]
mov esi, dword [edi]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x4ed11f
lea edi, [esi + 0x28]
lea ecx, [ebx + 0xa8]
mov dword [ebp + 8], edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x5f2b74
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub edi, 0xffffff80
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x5f2b74
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x5f2b74
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x5f2b74
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0xa8]
push edi
push eax
call fcn.00501420
mov edi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x4ed0fb
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.00501420
pop ecx
pop ecx
test eax, eax
je 0x4ed13c
mov eax, 0x1b0
lea ecx, [ebx + 0xa8]
add edi, eax
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edi
cmp esi, dword [eax + 0x214]
jne 0x4ed085
mov edi, dword [ebp - 8]
lea eax, [ebx + 0xa8]
push eax
call fcn.00500c00
pop ecx
test eax, eax
je 0x4ed13c
push ebx
mov ecx, edi
call fcn.004eda5b
mov al, 1
jmp 0x4ed13e
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ed99e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0x114
push edi
push ebx
xor edi, edi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.004f0ae0
add esp, 0xc
mov dword [ebp - 0x118], ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4ed9ff
mov ecx, esi
call fcn.004ed418
jmp 0x4eda14
mov ebx, edi
test edi, edi
jne 0x4eda14
mov ecx, esi
call fcn.004ed2f3
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x4eda01
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474193
mov esp, ebp
pop ebp
ret

Function at 0x4edcc6
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4edd0e
xor eax, eax
jmp 0x4eddf8
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004f0ae0
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x656bb0
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4eddda
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004f0ae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.00500c96
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4edd07
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.00500d07
pop ecx
pop ecx
jmp 0x4eddf5
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00500d07
pop ecx
pop ecx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00474193
mov esp, ebp
pop ebp
ret 4
Function at 0x4ede86
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x208
push edi
push eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], edi
call fcn.004f0ae0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
add esp, 0xc
mov ebx, 0x20019
push eax
push ebx
push edi
push 0x656c9c
push connect
call esi
test eax, eax
je 0x4edef6
xor eax, eax
jmp 0x4edfc4
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push str.shell
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x4edeef
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
push str.opencommand
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x4edeef
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 1
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x656bb0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x214]
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004fb6f3
mov edi, 0x5b5e14
push edi
push eax
call fcn.004efe95
add esp, 0xc
test eax, eax
je 0x4edeef
lea esi, [eax + 2]
push edi
push esi
call fcn.004efe95
pop ecx
pop ecx
test eax, eax
je 0x4edeef
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474193
mov esp, ebp
pop ebp
ret
Function at 0x4ee31e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fa4
call fcn.004741b0
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push edi
mov edi, 0x800
xor ebx, ebx
push edi
push ebx
push eax
call fcn.004f0ae0
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.004f0ae0
add esp, 0x18
lea eax, [ebp - 0x1fa4]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x646828
push 0x646888
call fcn.00500d29
pop ecx
lea eax, [ebp + eax*2 - 0x1fa4]
push eax
call fcn.00500d07
lea eax, [ebp - 0x1fa4]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00500d07
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.00500d07
lea eax, [ebp - 0x1fa4]
push esi
push eax
call fcn.00500c96
add esp, 0x20
push 1
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4ee3ee
push ebx
push ebx
lea ecx, [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
call fcn.004ce215
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00474193
mov esp, ebp
pop ebp
ret 4

Function at 0x4ee77f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
cmp dword [esi + 0x14], 8
jb 0x4ee793
mov eax, dword [esi]
jmp 0x4ee795
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ee7f9
push 0x647b24
call fcn.00500d29
pop ecx
push eax
push 0x647b24
lea ecx, [edi + 0x34]
call fcn.00402650
cmp dword [esi + 0x14], 8
jb 0x4ee7c3
mov eax, dword [esi]
jmp 0x4ee7c5
mov eax, esi
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.004ee6ec
test eax, eax
jne 0x4ee7f9
cmp dword [esi + 0x14], 8
jb 0x4ee7de
mov eax, dword [esi]
jmp 0x4ee7e0
mov eax, esi
push 0
push 0
push dword [ebp + 8]
push eax
call fcn.004ce215
add esp, 0x10
test eax, eax
je 0x4ee7f9
xor eax, eax
inc eax
jmp 0x4ee861
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4ee804
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ee85f
push 0x647b30
call fcn.00500d29
pop ecx
push eax
push 0x647b30
lea ecx, [edi + 0x34]
call fcn.00402650
cmp dword [esi + 0x14], 8
jb 0x4ee832
mov eax, dword [esi]
jmp 0x4ee834
mov eax, esi
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.004ee6ec
test eax, eax
jne 0x4ee85f
cmp dword [esi + 0x14], 8
jb 0x4ee84b
mov esi, dword [esi]
push 0
push 0
push dword [ebp + 8]
push esi
call fcn.004ce215
add esp, 0x10
test eax, eax
jne 0x4ee7f4
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x4ee867
Capabilities:
Get disk information

Disassembly:
push 0x4e0
mov eax, 0x5563dd
call fcn.00513ea1
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4e0]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push edi
xor eax, eax
mov dword [ebp - 0x4ec], edi
push 0x656bb0
mov dword [ebp - 0x4cc], 7
mov dword [ebp - 0x4d0], edi
mov word [ebp - 0x4e0], ax
call fcn.00402650
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4ee99d
lea eax, [ebp - 0x4c8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4ee99d
mov dword [ebp - 0x4e4], edi
cmp word [ebp - 0x4c8], di
je 0x4ee99d
and dword [ebp - 0x4e8], 0
lea edi, [ebp - 0x4c8]
push 0x647b48
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4ee971
push 0x647b50
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4ee971
mov ax, word [edi]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x4e8]
push 0x64
mov ax, word [ebp + eax - 0x4c6]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4eea1b
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xe0]
push edi
push eax
push ebx
call fcn.00502f19
add esp, 0xc
test eax, eax
je 0x4ee9c3
mov eax, dword [ebp - 0x4e4]
lea edi, [ebp - 0x4c8]
add eax, 4
mov dword [ebp - 0x4e4], eax
add eax, eax
add edi, eax
mov dword [ebp - 0x4e8], eax
xor eax, eax
cmp word [edi], ax
jne 0x4ee8f3
xor edi, edi
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.00404610
push edi
push 1
lea ecx, [ebp - 0x4e0]
call fcn.00402590
mov eax, esi
call fcn.00513e4b
ret 8
cmp word [ebp - 0x18], 0
jne 0x4ee9ce
xor eax, eax
jmp 0x4ee9d8
lea eax, [ebp - 0x18]
push eax
call fcn.00500d29
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00404240
lea edi, [ebx + edi*2]
xor ebx, ebx
cmp word [edi], bx
jne 0x4ee9f6
mov eax, ebx
jmp 0x4ee9fd
push edi
call fcn.00500d29
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4e0]
call fcn.00404240
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.00404610
push ebx
jmp 0x4ee9ac
push 0x656bb0
mov ecx, esi
call fcn.004024f0
xor eax, eax
push eax
jmp 0x4ee9ac

Function at 0x506d86
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00506c05

Function at 0x50886b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050852b
Function at 0x515ad0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004f0ae0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x515b42
cmp dword [ebp - 0x118], 2
jg 0x515b42
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474193
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00474193
mov esp, ebp
pop ebp
ret

Function at 0x515cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x515cfc
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x515ced
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x515d30
cmp dword [esi + 8], 0
jne 0x515d20
push 0x55c020
push dword [eax + 8]
call fcn.004f7d52
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x515d20
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004f7f35
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x515d52
mov eax, dword [esi + 8]
test eax, eax
je 0x515d4c
push eax
call fcn.004f7b03
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x516030
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x516080
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x51607a
shr eax, 8
cmp al, 2
jne 0x51607a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474193
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00474193
mov esp, ebp
pop ebp
ret

Function at 0x5166f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x51676e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x51673e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00523eb0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.005163d0
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret