joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov esi, dword [eax]
mov edi, ecx
mov eax, dword [0x4d5cf4]
mov ebx, edx
mov dword [ebp - 4], edi
cmp eax, dword [esi + 4]
jle 0x417f96
push 0x4d5cf4
call fcn.00441ef1
add esp, 4
cmp dword [0x4d5cf4], 0xffffffff
jne 0x417f96
push str.xmbpcbrowser_sinx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4d5cf4
mov dword [0x4d5cf8], eax
call fcn.00441ea7
add esp, 4
cmp dword [0x4d5c90], 0
jne 0x41804b
xor eax, eax
nop word [eax + eax]
mov byte [eax + 0x4d5b90], al
inc eax
cmp eax, 0x100
jl 0x417fb0
mov esi, dword [0x4d5cf8]
xor ecx, ecx
mov eax, ecx
cdq
idiv esi
mov al, byte [edx + str.xmbpcbrowser_sinx]
mov byte [ecx + 0x4d5a90], al
inc ecx
cmp ecx, 0x100
jl 0x417fc6
xor edi, edi
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [esi + 0x4d5b90]
movzx eax, byte [esi + 0x4d5a90]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x418014
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x4d5b90]
xor al, dl
mov byte [esi + 0x4d5b90], al
xor byte [edi + 0x4d5b90], al
movzx eax, byte [edi + 0x4d5b90]
xor byte [esi + 0x4d5b90], al
inc esi
cmp esi, 0x100
jl 0x417ff0
mov edi, dword [ebp - 4]
mov dword [0x4d5c90], 1
xor esi, esi
xor edx, edx
test ebx, ebx
jle 0x41807f
movzx eax, dl
movzx eax, byte [eax + 0x4d5b90]
add esi, eax
and esi, 0x800000ff
jns 0x41806f
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [esi + 0x4d5b90]
lea ecx, [edx + edi]
xor byte [ecx], al
inc edx
cmp edx, ebx
jl 0x418053
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419820
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4e1e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
lea edx, [ecx + 2]
mov dword [ebp - 0x28], 0x720050
mov dword [ebp - 0x24], 0x660065
mov dword [ebp - 0x20], 0x720065
mov dword [ebp - 0x1c], 0x6e0065
mov dword [ebp - 0x18], 0x650063
mov dword [ebp - 0x14], 0x73
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4198b0
sub ecx, edx
lea eax, [ebp - 0x28]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
Function at 0x41be10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a51fe
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], 1
lea edx, [ecx + 2]
mov dword [ebp - 0x34], 0x480053
mov dword [ebp - 0x30], 0x4c0045
mov dword [ebp - 0x2c], 0x44004c
mov dword [ebp - 0x28], 0x4c004c
mov dword [ebp - 0x24], 0x44005f
mov dword [ebp - 0x20], 0x660065
mov dword [ebp - 0x1c], 0x690056
mov dword [ebp - 0x18], 0x770065
mov word [ebp - 0x14], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41beb0
sub ecx, edx
lea eax, [ebp - 0x34]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret

Function at 0x41bfb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a524e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
lea edx, [ecx + 2]
mov dword [ebp - 0x2c], 0x690044
mov dword [ebp - 0x28], 0x650072
mov dword [ebp - 0x24], 0x740063
mov dword [ebp - 0x20], 0x490055
mov dword [ebp - 0x1c], 0x570048
mov dword [ebp - 0x18], 0x44004e
mov word [ebp - 0x14], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c040
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
Function at 0x41c2a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41c356
cmp word [esi], 0
je 0x41c356
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41c34d
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41c347
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
je 0x41c347
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push dword [ebp - 4]
call fcn.004433d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x41c342
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a534d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4cc00c]
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 dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], eax
call fcn.0041d0a0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406f00
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x41c9d7
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c9cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb14
push edx
push ecx
call fcn.0044235d
add esp, 8
cmp dword [ebp - 0x18], 8
lea ebx, [ebp - 0x2c]
push 0
cmovae ebx, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x41cabe
add esi, 0x20
push esi
call fcn.0044d0ca
mov edi, eax
add esp, 4
test edi, edi
je 0x41cabe
push edi
push esi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41cab5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
push 0x4bb6b0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41cab5
mov eax, dword [ebp - 0x30]
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x4c]
push str._d._d._d._d
push eax
call fcn.004172d0
mov ecx, dword [ebp - 0x34]
add esp, 0x18
push eax
call fcn.00407130
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x41caa5
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41ca9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb19
push edx
push ecx
call fcn.0044235d
add esp, 8
push edi
call fcn.004450d0
add esp, 4
mov esi, 1
jmp 0x41cac0
push edi
call fcn.004450d0
add esp, 4
xor esi, esi
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41caf6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41caec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb1e
push edx
push ecx
call fcn.0044235d
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
call fcn.004452a7
call fcn.004452a7
call fcn.004452a7
int3
Function at 0x41cf20
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5447
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.0049cd50
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x2018], edi
mov dword [ebp - 0x201c], edi
xor eax, eax
mov dword [ebp - 0x2014], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x2000
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2014], 1
push eax
call fcn.00443950
add esp, 0xc
lea eax, [ebp - 0x2010]
push 0
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41cfe3
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cfc5
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407400
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret

Function at 0x41d000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0049cd50
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2000
mov esi, ecx
lea eax, [ebp - 0x2004]
push 0
mov dword [ebp - 0x2008], esi
push eax
mov dword [ebp - 0x2008], esi
call fcn.00443950
add esp, 0xc
lea eax, [ebp - 0x2004]
push eax
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x2004]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d070
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407400
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
Function at 0x41d260
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4cd538]
cmp eax, 0xffffff9c
jne 0x41d35e
push 0x1000
lea eax, [ebp - 0x2004]
mov dword [0x4cd538], 0xffffffff
push 0
push eax
call fcn.00443950
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00443950
add esp, 0x18
lea eax, [ebp - 0x2004]
push 0xfff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x2004], 0
je 0x41d3b8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x2004]
push edi
push eax
lea eax, [ebp - 0x1004]
mov dword [0x4cd538], 0
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x1004]
push str.System
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x1004]
push eax
call ebx
test eax, eax
je 0x41d36c
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call esi
push str.System32
lea eax, [ebp - 0x1004]
push eax
call edi
lea eax, [ebp - 0x1004]
push eax
call ebx
test eax, eax
je 0x41d36c
mov dword [0x4cd538], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4cd538]
test eax, eax
jne 0x41d35b
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call esi
push str.SysWOW64
lea eax, [ebp - 0x1004]
push eax
call edi
lea eax, [ebp - 0x1004]
push eax
call ebx
dec eax
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
mov dword [0x4cd538], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [0x4cd538]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
Function at 0x41e0a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a55dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e1a2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x41e146
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41e1a2
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00418320
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x30]
push 0
push ecx
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41e18d
cmp eax, 0xffffffff
je 0x41e18d
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00418320
jmp 0x41e1a2
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
mov byte [eax], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41e1f0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a561d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4cc00c]
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 esi, edx
mov dword [ebp - 0x3c], esi
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x34], 0
push 0x408
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.00407ab0
mov edx, eax
mov dword [ebp - 0x24], 0x400
xor eax, eax
mov dword [ebp - 0x20], 0x407
mov ecx, 0x200
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x800], ax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x400
push ecx
cmovae eax, edx
mov dword [ebp - 0x1c], 0x44
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push 0
call edi
mov esi, eax
test esi, esi
jne 0x41e315
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41e315
cmp dword [ebp - 0x1c], 0x44
jbe 0x41e2be
xor ebx, ebx
jmp 0x41e31c
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x400
jbe 0x41e2f3
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x41e2e6
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmovae eax, dword [ebp - 0x34]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x41e2f3
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.00428b50
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x3c]
push ebx
push 0
call edi
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x41e352
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e348
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e370
push edx
push ecx
call fcn.0044235d
add esp, 8
mov eax, ebx
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.00441dc6
mov esp, ebp
pop ebp
ret
call fcn.004452a7
int3
Function at 0x41e380
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5677
mov eax, dword fs:[0]
push eax
mov eax, 0x4028
call fcn.0049cd50
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4014], esi
mov dword [ebp - 0x4014], esi
mov dword [ebp - 0x401c], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4d5cfc]
cmp eax, dword [ecx + 4]
jle 0x41e42c
push 0x4d5cfc
call fcn.00441ef1
add esp, 4
cmp dword [0x4d5cfc], 0xffffffff
jne 0x41e42c
push 0x4aa270
mov dword [0x4d5d00], 0
mov dword [0x4d5d10], 0
mov dword [0x4d5d14], 0xf
call fcn.00442348
add esp, 4
push 0x4d5cfc
call fcn.00441ea7
add esp, 4
cmp dword [0x4d5d10], 0
jne 0x41e580
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.00443950
add esp, 0xc
mov dword [ebp - 0x4014], 0x1000
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x41e580
push 0x2000
lea eax, [ebp - 0x4010]
push 0
push eax
call fcn.00443950
add esp, 8
lea edx, [ebp - 0x4010]
lea ecx, [ebp - 0x2010]
call fcn.0041e1f0
add esp, 4
test eax, eax
je 0x41e580
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4034], 0
push eax
mov dword [ebp - 0x4024], 0
mov dword [ebp - 0x4020], 0xf
mov byte [ebp - 0x4034], 0
mov dword [ebp - 0x401c], 2
mov dword [ebp - 0x4018], 0
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
je 0x41e532
mov edx, dword [ebp - 0x4018]
mov ecx, edx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e510
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x4034]
call fcn.00407620
push dword [ebp - 0x4018]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x4034]
mov ecx, 0x4d5d00
push eax
call fcn.00407130
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4020]
cmp edx, 0x10
jb 0x41e580
mov ecx, dword [ebp - 0x4034]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e576
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e5a9
push edx
push ecx
call fcn.0044235d
add esp, 8
push 0x4d5d00
mov ecx, esi
call fcn.00407240
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
call fcn.004452a7
int3
Function at 0x41e820
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a56fd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4cc00c]
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 ebx, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push eax
push eax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
mov esi, edi
mov dword [ecx], eax
lea edx, [esi + 2]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41e885
sub esi, edx
sar esi, 1
push esi
push edi
call fcn.00407400
xor edx, edx
lea ecx, [ebp - 0x30]
call fcn.004174f0
add esp, 0x20
cmp dword [ebp - 0x20], 0
je 0x41e8d4
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41e8d4
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
call fcn.00422180
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e8fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41e92a
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x41e924
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x18]
jmp 0x41e92d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x41e963
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e959
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e981
push edx
push ecx
call fcn.0044235d
add esp, 8
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.00441dc6
mov esp, ebp
pop ebp
ret
call fcn.004452a7
int3