joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003911
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor esi, esi
push 1
cmp dword [ebp + 8], esi
pop ebx
jne 0x100392d
xor eax, eax
jmp 0x1003a05
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10039bd
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x100aaa8], esi
mov ecx, dword [ebp + 0xc]
jne 0x1003997
mov al, byte [0x100b6cc]
test bl, al
je 0x1003997
test al, 2
jne 0x1003997
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1003997
mov dword [0x100b6cc], ecx
push ecx
call fcn.01003a0b
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
test byte [0x100b6d5], 4
je 0x1003a02
cmp dword [ebp + 0xc], esi
jge 0x1003a02
jmp 0x1003a00
call fcn.01005735
mov dword [0x100b704], eax
push esi
lea eax, [ebp - 0x210]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
lea eax, [ebp - 0x210]
push 0x10
push eax
push dword [ebp + 8]
push 0x4c4
push esi
call fcn.01003ce8
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1003ae8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1003c02
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1003bef
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1003bef
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1003bef
cmp byte [0x100b720], bl
mov esi, 0x100b720
jne 0x1003b8c
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
add eax, esi
push eax
push esi
call edi
cmp byte [eax], 0x5c
mov dword [ebp - 4], eax
jne 0x1003b8c
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x1003b8c
mov eax, dword [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
mov byte [edi], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x1003ac7
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1003bdd
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100b720], bl
je 0x1003bd7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [edi], bl
setne al
jmp 0x1003c16
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1003c0c
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.01003ce8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1003e3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
xor edi, edi
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1003ea4
cmp dword [ebp + 0xc], edi
je 0x1003ea4
cmp ebx, edi
je 0x1003e84
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1003e88
xor eax, eax
jmp 0x1003ea6
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1003f3b
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 1
pop ebx
push edi
mov esi, ebx
call fcn.01005a34
test eax, eax
jne 0x1003f55
mov eax, ebx
jmp 0x1003fb4
cmp dword [0x100ae7c], 0
jne 0x1003fa2
test byte [0x100aab8], bl
jne 0x1003fa2
push 6
push 0
push 0x1002ef0
mov dword [0x100b0a4], edi
push dword [0x100aa78]
push 0x7d3
push dword [0x100b6dc]
call fcn.01005962
sub eax, 6
je 0x1003fa0
dec eax
je 0x1003fba
sub eax, 0x832
jne 0x1003fa2
mov dword [0x100ae7c], ebx
mov esi, ebx
test esi, esi
je 0x1003fb2
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
xor esi, esi
jmp 0x1003fa2

Function at 0x10040de
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov cl, byte [edi]
test cl, cl
je 0x1004142
mov al, byte [edi + 1]
lea esi, [edi + 1]
xor ebx, ebx
cmp al, 0x3a
jne 0x1004102
cmp byte [edi + 2], 0x5c
jne 0x1004102
lea esi, [edi + 3]
jmp 0x1004111
cmp cl, 0x5c
jne 0x1004111
cmp al, cl
jne 0x1004111
push 2
lea esi, [edi + 2]
pop ebx
mov al, byte [esi]
test al, al
je 0x1004142
cmp al, 0x5c
jne 0x1004137
cmp byte [esi - 1], 0x3a
je 0x1004137
test ebx, ebx
je 0x1004128
dec ebx
jmp 0x1004137
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1004111
pop edi
pop esi
pop ebx
ret 4

Function at 0x1004a93
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
mov eax, edi
inc edi
push eax
lea eax, [esp + 0x14]
push 0x1001460
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005a84
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
je 0x1004afb
cmp edi, 0x190
jl 0x1004aa8
jmp 0x1004b0e
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1004b0e
push 1
pop ebp
mov dword [0x100aaa0], ebp
test ebp, ebp
jne 0x1004b39
push esi
push ebp
push 0x100145c
push dword [esp + 0x124]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1004b39
push 1
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
Function at 0x1004b48
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
je 0x1004bd5
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.01004a93
test eax, eax
je 0x1004c32
lea eax, [ebp - 0x128]
mov esi, 0x100ae84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b6d4], 0x20
je 0x1004bc8
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
sub eax, ebx
je 0x1004bbd
dec eax
je 0x1004bb6
dec eax
je 0x1004baf
dec eax
jne 0x1004bc8
push 0x1001484
jmp 0x1004bc2
push 0x100147c
jmp 0x1004bc2
push 0x1001474
jmp 0x1004bc2
push 0x100146c
push esi
call fcn.01005a84
push 0x10012b8
push esi
call fcn.01005a84
jmp 0x1004be4
push dword [ebp + 8]
mov esi, 0x100ae84
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.01004f1a
test eax, eax
jne 0x1004c04
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1004c3a
mov dword [0x100aaa0], 1
push ebx
push dword [ebp + 0x10]
push esi
call fcn.01004fb9
test eax, eax
je 0x1004c1d
push 1
mov dword [0x100b704], ebx
pop eax
jmp 0x1004c34
cmp dword [0x100aaa0], ebx
je 0x1004c32
push esi
mov dword [0x100aaa0], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
call fcn.01005735
mov dword [0x100b704], eax
jmp 0x1004c32
Function at 0x1004f1a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1004f60
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01003ce8
call fcn.01005735
mov dword [0x100b704], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100149c
push esi
call fcn.01005a84
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1004f4d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004f4d
test al, 0x10
je 0x1004f4d
push 1
mov dword [0x100b704], ebp
pop eax
jmp 0x1004f59
Function at 0x1004fb9
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0x10051aa
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x1005013
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003ce8
call fcn.01005735
mov dword [0x100b704], eax
jmp 0x1005135
lea eax, [ebp - 4]
push eax
push ebx
call fcn.01005b70
mov edi, eax
cmp edi, ebx
jne 0x1005078
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x317]
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.01005735
mov dword [0x100b704], eax
push ebx
lea eax, [ebp - 0x318]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
lea eax, [ebp - 0x318]
push 0x10
push eax
push dword [ebp + 8]
push 0x4b0
jmp 0x10050e1
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x10050f2
push 0x7f
lea edi, [ebp - 0x317]
pop ecx
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.01005735
mov dword [0x100b704], eax
push ebx
lea eax, [ebp - 0x318]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
lea eax, [ebp - 0x318]
push 0x10
push eax
push dword [ebp + 8]
push 0x4f9
push ebx
call fcn.01003ce8
lea eax, [ebp - 0x118]
push eax
call esi
jmp 0x1005135
lea eax, [ebp - 0x118]
push eax
call esi
push 3
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 4], ecx
je 0x100511f
shl ecx, 1
inc eax
cmp ax, 8
jb 0x1005111
cmp ax, 8
jne 0x1005139
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003ce8
xor eax, eax
jmp 0x10051ad
test byte [0x100b6d4], 8
je 0x1005163
test byte [ebp - 0xf], 0x80
je 0x1005163
mov edx, dword [0x100b6d8]
movzx eax, ax
mov ecx, edx
mov eax, dword [eax*4 + 0x100b6e0]
shr ecx, 2
shl eax, 1
add ecx, edx
jmp 0x1005173
mov ecx, dword [0x100b6d8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100b6e0]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x1005188
test byte [ebp + 0xc], 2
je 0x1005188
lea edx, [ecx + eax]
cmp edx, edi
jmp 0x1005192
cmp esi, ebx
je 0x1005190
cmp eax, edi
jmp 0x1005192
cmp ecx, edi
jbe 0x10051a4
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.010022bd
jmp 0x10051ad
mov dword [0x100b704], ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10056e6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1005723
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003ce8
call fcn.01005735
mov dword [0x100b704], eax
xor eax, eax
leave
ret
push 2
lea eax, [ebp - 0x104]
push 2
push eax
call fcn.01004fb9
leave
ret

Function at 0x1005754
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x24]
push edi
push 0x1001360
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100581d
jmp 0x1005797
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x1005803
mov eax, dword [esi]
lea edi, [esi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [ebp + 8]
test eax, eax
je 0x1005812
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc dword [ebp - 4]
lea eax, [ebp - 0x24]
push dword [ebp - 4]
push 0x1001360
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x1005795
jmp 0x100581d
mov dword [0x100b704], 0x80070714
mov dword [ebp - 8], edi
jmp 0x100581d
and dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1005902
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x100ae84
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.01005a84
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005955
test al, 0x10
jne 0x1005955
push 8
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x100595e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x1005a34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005a47
xor eax, eax
jmp 0x1005a4f
not eax
shr eax, 4
and eax, 1
ret 4
Function at 0x1005b1c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp byte [ecx], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
je 0x1005b52
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005b56
xor eax, eax
jmp 0x1005b6c
mov eax, dword [ebp - 8]
push 0x400
imul eax, dword [ebp - 0xc]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x1006de6
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x1006e26
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x1006e04
and esi, 3
xor eax, eax
dec esi
je 0x1006e42
dec esi
je 0x1006e3b
dec esi
jne 0x1006e47
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4058c9
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x571f94
call fcn.00545ef4
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, eax
test edi, edi
je 0x40599f
cmp word [edi], ax
je 0x40599f
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40591b
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0054deec
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040a1ee
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040586f
mov esi, eax
test esi, esi
jne 0x40599f
push 0x38
call fcn.00414986
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x40597a
lea eax, [ebp - 0x218]
mov byte [esi], 1
push eax
lea ecx, [esi + 4]
call fcn.00402e70
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
and dword [esi + 0x1c], 0
call fcn.00403ba0
mov byte [ebp - 4], 0
jmp 0x40597c
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x40599f
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x40]
call fcn.00407fed
mov esi, dword [ebp - 0x21c]
mov eax, esi
call fcn.00545e9e
ret 4
Function at 0x406913
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x5722ad
call fcn.00545ef4
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
cmp dword [ebx + 0x2e4], esi
jle 0x4069f1
cmp eax, 0xffffffff
je 0x4069f1
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.00402e70
mov dword [ebp - 4], 1
lea edi, [ebx + 0x2d4]
push eax
mov ecx, edi
call fcn.00408356
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402db0
jmp 0x4069e8
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004089e1
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x406988
xor eax, eax
jmp 0x40698a
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.00402ed0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.00402d50
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x4069c7
add esi, dword [ebp - 0x38]
mov dword [ebp - 0x30], esi
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
dec ecx
and ecx, dword [edi + 0xc]
mov ecx, dword [eax + ecx*4]
call fcn.00402db0
sub dword [edi + 0x10], 1
jne 0x4069e5
and dword [edi + 0xc], 0
jmp 0x4069e8
inc dword [edi + 0xc]
cmp dword [ebx + 0x2e4], 0
ja 0x406971
mov eax, esi
call fcn.00545e9e
ret 8
Function at 0x4072ed
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ddf64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov ebx, ecx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x407375
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40736e
test dword [ebp - 0x408], 0xfffffffc
jbe 0x40736e
add ebx, 0xbc
push 0x104
push ebx
push dword [ebp + esi*4 - 0x404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x408]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40734d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054569e
mov esp, ebp
pop ebp
ret 4
Function at 0x407388
Capabilities:
Accept command line arguments

Disassembly:
push 0xc0
mov eax, 0x5723da
call fcn.00545ef4
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push str.Module_File_Name:
mov dword [ebp - 0xc8], eax
call fcn.00402e70
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push str.____Command_Line:
call fcn.00402e70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push str.____File_Version:
call fcn.00402e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push str.______Process_ID:
call fcn.00402e70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push str.________Built_on:
call fcn.00402e70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push str.___Log_File_Name:__
call fcn.00402e70
mov byte [ebp - 4], 5
lea edi, [ebx + 0xbc]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea ecx, [ebp - 0x58]
call fcn.00402d60
push 0x14
call fcn.00414986
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40744d
push edi
mov ecx, eax
call fcn.00413800
mov esi, eax
jmp 0x40744f
xor esi, esi
mov byte [ebp - 4], 5
test esi, esi
je 0x40747a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x407468
push eax
jmp 0x40746d
push str._no_version_info_
call fcn.00402d60
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0xc4]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4074b0
push dword [ebp - 0xa4]
push str.___ld_bytes_
push 0x104
push edi
call fcn.0040430a
add esp, 0x10
lea ecx, [ebp - 0x58]
push edi
call fcn.00402d60
lea ecx, [ebp - 0x58]
call fcn.00402d50
mov esi, dword [ebp - 0xc8]
mov edi, 0x40000000
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040721d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00402d60
lea ecx, [ebp - 0xa0]
call fcn.00402d50
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040721d
lea ecx, [ebp - 0x40]
call fcn.00402d50
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040721d
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x54]
push eax
lea ecx, [ebp - 0x88]
call fcn.004037d0
lea ecx, [ebp - 0x88]
call fcn.00402d50
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040721d
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.004037d0
lea ecx, [ebp - 0x70]
call fcn.00402d50
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040721d
mov ecx, esi
call fcn.0040a49b
push eax
lea ecx, [ebp - 0x28]
call fcn.00402d60
push 0x5bac18
lea ecx, [ebp - 0x28]
call fcn.00402d60
lea ecx, [ebp - 0x28]
call fcn.00402d50
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040721d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00402db0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00402db0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00402db0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402db0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00402db0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402db0
call fcn.00545e9e
ret 4