joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40392a
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push edi
push 0x46
push 0x40
call ebx
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4039dc
push 0x40000
push 0x40
mov word [esi], 0x46
call ebx
cmp eax, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x32], eax
jne 0x40396c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4039dc
lea eax, [ebp - 0x18]
push eax
call fcn.0040390e
mov ebx, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
lea eax, [ebp - 0x18]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x41d39c]
cmp eax, 0xffffffff
mov dword [esi + 2], eax
jne 0x4039c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4039c6
test bl, 1
je 0x4039c6
push edi
lea eax, [ebp - 0x18]
push dword [ebp + 0x18]
or ebx, 2
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x41d39c]
mov dword [esi + 2], eax
mov eax, dword [esi + 2]
cmp eax, 0xffffffff
jne 0x4039e1
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push esi
call edi
or esi, 0xffffffff
jmp 0x403a33
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x22], edi
mov dword [esi + 6], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x40000
mov dword [esi + 0x1a], edi
mov dword [esi + 0x36], ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [esi + 0xe], 0x40000
mov dword [esi + 0x26], edi
mov dword [esi + 0x1e], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov dword [esi + 0x12], eax
mov eax, dword [ebp - 8]
push edi
push esi
mov dword [esi + 0x16], eax
call fcn.004038db
mov eax, dword [esi + 0xe]
push esi
add eax, dword [esi + 0x32]
mov dword [esi + 0x36], eax
call fcn.004036ea
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x404a6a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
dec ecx
test eax, eax
mov eax, dword [0x41d428]
jle 0x404ab5
push edi
push esi
mov esi, dword [esp + 0xc]
push ebx
lea edi, [ecx + 1]
mov cx, word [eax + 0x39c]
movzx ebx, byte [esi]
mov edx, ecx
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, ch
mov cx, word [eax + edx*2 + 0x194]
xor cx, bx
inc esi
dec edi
mov word [eax + 0x39c], cx
jne 0x404a84
pop ebx
pop esi
pop edi
mov ax, word [eax + 0x39c]
ret 8
Function at 0x404d61
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
push 1
lea eax, [ebp - 0x68]
pop edi
xor esi, esi
push 0x64
push eax
push 0x40fa88
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x404dd0
mov cl, byte [ebp - 0x68]
lea eax, [ebp - 0x68]
test cl, cl
je 0x404da7
cmp cl, 0x2b
je 0x404da7
cmp cl, 0x2d
je 0x404da7
cmp cl, 0x30
jb 0x404da1
cmp cl, 0x39
jbe 0x404da7
mov cl, byte [eax + 1]
inc eax
jmp 0x404d89
mov cl, byte [eax]
cmp cl, 0x2d
jne 0x404db2
xor edi, edi
jmp 0x404db7
cmp cl, 0x2b
jne 0x404db8
inc eax
mov cl, byte [eax]
cmp cl, 0x30
jb 0x404dd0
cmp cl, 0x39
ja 0x404dd0
movzx ecx, cl
lea edx, [esi + esi*4]
lea esi, [ecx + edx*2 - 0x30]
jmp 0x404db7
mov eax, esi
push 0
imul eax, eax, 0xe10
cdq
push 0x5f5e100
push edx
push eax
call fcn.00409ce0
mov esi, dword [ebp + 8]
test edi, edi
mov ecx, dword [esi]
je 0x404df9
sub ecx, eax
mov eax, dword [esi + 4]
sbb eax, edx
jmp 0x404e00
add ecx, eax
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret 4
Function at 0x40830c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 5
push dword [ebp + 0xc]
call fcn.004033a2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [ebp + 8]
add edi, 0x46
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x408498
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40848c
push 0x12
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], esi
pop eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov cl, byte [ecx]
mov byte [edx], cl
inc dword [ebp + 0xc]
inc dword [ebp - 4]
dec eax
jne 0x408373
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004082d3
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004082d3
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004082d3
mov eax, dword [esi]
test al, 0x40
jne 0x4083da
mov cx, word [0x41d2f8]
or al, 0x40
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov word [eax], cx
mov eax, dword [0x41d428]
add dword [ebp + 0xc], 2
add eax, 0xc0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
jmp 0x408425
cmp dword [0x41d44c], 0
je 0x408422
mov eax, dword [ebp + 0xc]
mov cx, word [0x41d2f8]
mov word [eax], cx
mov eax, dword [0x41d428]
add eax, 0xc0
add dword [ebp + 0xc], 2
add dword [ebp - 4], 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004082d3
mov eax, dword [ebp - 4]
movzx eax, word [eax]
add dword [ebp - 4], 2
test eax, eax
jne 0x408412
jmp 0x40842f
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004082d3
mov eax, dword [ebp + 0xc]
sub eax, esi
and eax, 3
je 0x408440
push 4
pop ecx
sub ecx, eax
mov eax, ecx
test eax, eax
jle 0x408450
mov ecx, dword [ebp + 0xc]
and byte [ecx], 0
inc dword [ebp + 0xc]
dec eax
jne 0x408444
mov eax, dword [ebp - 4]
sub eax, ebx
and eax, 3
je 0x408461
push 4
pop ecx
sub ecx, eax
mov eax, ecx
test eax, eax
jle 0x408468
add dword [ebp - 4], eax
lea eax, [edi + ebx - 0x46]
cmp dword [ebp - 4], eax
mov dword [ebp - 8], eax
ja 0x40848c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ecx], al
inc dword [ebp + 0xc]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x408474
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x409081
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
xor edi, edi
push str.shell32.dll
mov dword [0x41d4bc], edi
mov dword [0x41d444], edi
mov dword [0x41d514], edi
mov dword [0x41d494], edi
call fcn.004042c3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [0x41d328], eax
je 0x4091ab
cmp dword [0x41d44c], 0x10
jl 0x409109
push str.SHBrowseForFolderW
push eax
call esi
push str.SHGetPathFromIDListW
mov dword [0x41d38c], eax
push dword [0x41d328]
mov dword [0x41d4bc], eax
call esi
push str.ShellExecuteW
mov dword [0x41d3e4], eax
push dword [0x41d328]
mov dword [0x41d444], eax
call esi
cmp eax, edi
mov dword [0x41d498], eax
je 0x40915c
mov dword [0x41d494], eax
jmp 0x40915c
push str.SHBrowseForFolderA
push eax
call esi
push str.SHGetPathFromIDListA
mov dword [0x41d380], eax
push dword [0x41d328]
mov dword [0x41d4bc], 0x401987
call esi
push str.ShellExecuteA
mov dword [0x41d3e0], eax
push dword [0x41d328]
mov dword [0x41d444], 0x4018b3
call esi
cmp eax, edi
mov dword [0x41d49c], eax
je 0x40915c
mov dword [0x41d494], 0x4022d4
mov eax, dword [0x41d44c]
cmp eax, 0x10
jl 0x409187
test al, 2
je 0x4091ab
push str.SHGetSpecialFolderPathW
push dword [0x41d328]
call esi
cmp eax, edi
mov dword [0x41d4f8], eax
je 0x4091ab
mov dword [0x41d514], eax
jmp 0x4091ab
test al, 2
je 0x4091ab
push str.SHGetSpecialFolderPathA
push dword [0x41d328]
call esi
cmp eax, edi
mov dword [0x41d4e4], eax
je 0x4091ab
mov dword [0x41d514], 0x401f90
cmp dword [0x41d514], edi
jne 0x4091bd
mov dword [0x41d514], fcn.0040213f
cmp dword [0x41d44c], edi
je 0x4091e5
push str.ole32.dll
call fcn.004042c3
cmp eax, edi
mov dword [0x41d354], eax
je 0x4091e5
push str.CoTaskMemFree
push eax
call esi
mov dword [0x41d4d0], eax
test byte [0x41d44c], 1
je 0x40920d
cmp dword [0x41d4bc], edi
je 0x409206
cmp dword [0x41d444], edi
je 0x409206
cmp dword [0x41d4d0], edi
jne 0x40920d
call fcn.00404351
jmp 0x409210
push 1
pop edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x409ac0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41cf50]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x409adf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x41cf4c], 1
mov byte [0x41cf48], bl
jne 0x409b39
mov ecx, dword [0x41e690]
test ecx, ecx
je 0x409b27
mov esi, dword [0x41e68c]
sub esi, 4
cmp esi, ecx
jb 0x409b27
mov eax, dword [esi]
test eax, eax
je 0x409b20
call eax
mov ecx, dword [0x41e690]
sub esi, 4
cmp esi, ecx
jae 0x409b12
push 0x40f01c
push 0x40f014
call fcn.00409b70
add esp, 8
push 0x40f024
push 0x40f020
call fcn.00409b70
add esp, 8
test ebx, ebx
jne 0x409b60
push ebp
mov dword [0x41cf50], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x409d20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e0f0
push 0x40b9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x41cf20], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x41cf1c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41cf18], ecx
shr eax, 0x10
mov dword [0x41cf14], eax
call fcn.0040b880
test eax, eax
jne 0x409d8a
push 0x1c
call fcn.00409ef0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040b680
call fcn.0040b670
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41e688], eax
call fcn.0040b030
mov dword [0x41cf54], eax
test eax, eax
je 0x409dbd
mov eax, dword [0x41e688]
test eax, eax
jne 0x409dc7
push 0xffffffffffffffff
call fcn.00409a80
add esp, 4
call fcn.0040ad80
call fcn.0040ac90
call fcn.00409a50
mov esi, dword [0x41e688]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x409ea6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x409e0e
test al, al
je 0x409e0e
and eax, 0xff
push eax
call fcn.0040ac30
add esp, 4
test eax, eax
je 0x409de8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409de8
cmp byte [esi], 0x22
jne 0x409e17
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x409e27
cmp al, 0x20
ja 0x409e27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409e17
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x409e48
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x409e4d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00409a80
jmp 0x409e8b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x409e17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409ea6
Function at 0x409ef0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x41cf5c], 1
jne 0x409efe
call fcn.0040ba90
mov eax, dword [esp + 4]
push eax
call fcn.0040bad0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40b030
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x41d070]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40b072
call edi
mov esi, eax
test esi, esi
je 0x40b05c
mov eax, 1
jmp 0x40b06d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b17f
mov eax, 2
mov dword [0x41d070], eax
cmp eax, 1
jne 0x40b112
test esi, esi
jne 0x40b08b
call edi
mov esi, eax
test esi, esi
je 0x40b17f
cmp word [esi], 0
mov eax, esi
je 0x40b0a5
add eax, 2
cmp word [eax], 0
jne 0x40b093
add eax, 2
cmp word [eax], 0
jne 0x40b093
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40b104
push edi
call fcn.0040c4b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b104
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40b0f6
push ebx
call fcn.0040c460
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40b17f
test ebx, ebx
jne 0x40b123
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b17f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40b13b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b12b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b12b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040c4b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40b15d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40bad0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4105f8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40baf4
add eax, 8
inc ebp
cmp eax, 0x410688
jb 0x40bae5
cmp ecx, dword [ebp*8 + 0x4105f8]
jne 0x40bc9b
mov eax, dword [0x41cf5c]
cmp eax, 1
je 0x40bc5d
test eax, eax
jne 0x40bb20
cmp dword [0x410454], 1
je 0x40bc5d
cmp ecx, 0xfc
je 0x40bc9b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bb5b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40bba4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40e3d0
add ebx, ecx
push ebx
call fcn.0040d0b0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40e3b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4105fc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040d020
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x41e580]
test eax, eax
je 0x40bc6e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40bc78
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4105fc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40bd70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41e680]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40bf1d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x41e580]
lea edi, [ecx*4 + 0x41e580]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40bf1d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40bdde
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40bdef
push 2
push ebp
push eax
call fcn.0040bcb0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40bf4e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40be99
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40be4a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40be37
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40be1a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bf3f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40be95
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40be16
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40bf0e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bee2
cmp eax, 5
jne 0x40becb
mov dword [0x41cf0c], eax
mov dword [0x41cf08], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040d1b0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40bf02
cmp byte [ebp], 0x1a
jne 0x40bf02
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41cf08], 0x1c
jmp 0x40bf27
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41cf08], 9
pop edi
pop esi
pop ebp
mov dword [0x41cf0c], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40be95
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bf7f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40be99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40be99
Function at 0x100293d
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x14
push 0x1006060
push 0x15
xor ebx, ebx
push eax
mov dword [0x1006090], eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x1001310
call fcn.01002bca
mov edi, dword [ebp + 0x10]
xor eax, eax
inc eax
cmp byte [edi], 0x2b
jne 0x1002980
mov dword [0x1005b10], eax
inc edi
cmp byte [edi], bl
mov esi, 0x1006020
jne 0x10029b8
push 0x10011ec
push esi
mov dword [ebp + 8], 0x10
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 8]
push eax
push 0x1006024
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
neg eax
sbb eax, eax
and eax, esi
mov dword [0x1006088], eax
jmp 0x10029d3
push 0x12
push esi
push 0xffffffffffffffff
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [0x1006042], bx
mov dword [0x1006088], esi
call fcn.010028ce
test eax, eax
je 0x10029e9
push dword [ebp + 0x14]
push edi
call fcn.01001c63
test eax, eax
jne 0x10029ed
xor eax, eax
jmp 0x1002a33
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1002a23
lea eax, [ebp - 0x1c]
push eax
push dword [0x100608c]
push dword [0x1006098]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1002a23
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call esi
test eax, eax
jne 0x10029f5
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1002bca
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1005040]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x3f
mov dword [ebp - 0x108], eax
pop ecx
xor eax, eax
mov dword [ebp - 0x104], 0x5c3a43
lea edi, [ebp - 0x100]
rep stosd dword es:[edi], eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001344
push esi
mov esi, str.netdde.log
push esi
lea eax, [ebp - 0x104]
push eax
push 0x1001338
mov ebx, 0x10011f4
push ebx
call fcn.01002dfe
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c3b
sub eax, edi
cmp eax, 0xf5
jae 0x1002c5e
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002c4c
mov edi, esi
mov esi, 0x100132c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1001344
push 1
push 0x100131c
push ebx
call fcn.01002d1f
push 0x80
push dword [ebp - 0x108]
mov dword [0x1005b14], eax
push str.NetDDE
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002ab2
leave
ret 4