joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401270
Capabilities:
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43781b
mov eax, dword fs:[0]
push eax
sub esp, 0x8a8
mov eax, dword [0x4487e8]
xor eax, esp
mov dword [esp + 0x8a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4487e8]
xor eax, esp
push eax
lea eax, [esp + 0x8b8]
mov dword fs:[0], eax
push 0x401140
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00407bfc
push 0
call fcn.00408e61
add esp, 4
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x6ae]
push edx
mov word [esp + 0x6b0], cx
call fcn.00425160
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4a6]
push ecx
mov word [esp + 0x4a8], ax
call fcn.00425160
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x29e]
push eax
mov word [esp + 0x2a0], dx
call fcn.00425160
add esp, 0xc
lea ecx, [esp + 0x6a4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x6a4]
push edx
lea eax, [esp + 0x4a0]
push 0x104
push eax
call fcn.00423922
add esp, 0xc
lea ecx, [esp + 0x6a4]
push ecx
lea edx, [esp + 0x298]
push 0x104
push edx
call fcn.00423922
add esp, 0xc
push 0x43dd40
lea eax, [esp + 0x4a0]
push 0x104
push eax
call fcn.00423991
add esp, 0xc
push str.Zt59143.exe
lea ecx, [esp + 0x298]
push 0x104
push ecx
call fcn.00423991
lea edx, [esp + 0x4a8]
add esp, 0xc
test edx, edx
je 0x4014f5
mov eax, edx
call fcn.00401520
test eax, eax
je 0x4014f5
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
mov edi, eax
test esi, esi
jne 0x401431
cmp edi, 2
je 0x401431
lea ecx, [esp + 0x294]
push ecx
call fcn.004015b0
add esp, 4
lea edx, [esp + 0x294]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401431
call ebx
mov edi, eax
cmp edi, 5
je 0x401494
mov eax, dword [0x44c5c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x44c5c0
call edx
add eax, 0x10
mov dword [esp + 0x28c], eax
mov eax, dword [0x44c5c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x44c5c0
call edx
add eax, 0x10
mov dword [esp + 0x290], eax
lea eax, [esp + 0x49c]
push eax
lea edx, [esp + 0x298]
lea ecx, [esp + 0x58]
mov dword [esp + 0x8c4], 0
call fcn.00401b00
lea esi, [esp + 0x54]
call fcn.00401ab0
push 0x38
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x24], 0x3c
call fcn.00425160
add esp, 0xc
lea eax, [esp + 0x18]
lea edx, [esp + 0x294]
push eax
mov dword [esp + 0x28], str.open
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea ecx, [esp + 0x29c]
push ecx
call esi
push 4
push 0
lea edx, [esp + 0x4a4]
push edx
call esi
xor eax, eax
mov ecx, dword [esp + 0x8b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a0]
xor ecx, esp
call fcn.004238c2
mov esp, ebp
pop ebp
ret
Function at 0x401520
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
xor eax, eax
cmp ax, word [esi]
jne 0x40152e
pop esi
pop ecx
ret
push ebx
push edi
push 0x43dd7c
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401594
push edi
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4015b0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x121c
call fcn.00426b40
mov eax, dword [0x4487e8]
xor eax, esp
mov dword [esp + 0x1218], eax
mov eax, dword [esp + 0x1220]
mov dword [esp], eax
test eax, eax
je 0x4015f4
cmp word [eax], 0
je 0x4015f4
lea eax, [esp + 8]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40160b
xor eax, eax
mov ecx, dword [esp + 0x1218]
xor ecx, esp
call fcn.004238c2
add esp, 0x121c
ret
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x102a]
push eax
shr ebx, 2
mov word [esp + 0x102c], dx
call fcn.00425160
add esp, 0xc
xor edi, edi
test ebx, ebx
jbe 0x4016a9
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + edi*4 + 0x20]
push ecx
push 0
push 0x410
call ebp
mov esi, eax
test esi, esi
je 0x40169d
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40169d
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x1024]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1020]
push eax
push ecx
call fcn.00423d10
add esp, 8
test eax, eax
je 0x4016c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x401642
xor eax, eax
mov ecx, dword [esp + 0x1228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004238c2
add esp, 0x121c
ret
mov edx, dword [esp + edi*4 + 0x20]
push 0
push edx
push 0
push 1
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4016ab
Function at 0x4017b0
Capabilities:
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4487e8]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
test esi, esi
je 0x40184d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4017d5
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x40184d
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00425160
push 0
lea ebx, [esp + 0x18]
call fcn.00401720
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebx
cmp eax, 0x10
je 0x401832
lea edx, [esp + 4]
push edx
call fcn.004017b0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004238c2
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004238c2
add esp, 0x20c
ret

Function at 0x401990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4019e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4019e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019d0
cmp esi, eax
jb 0x4019ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404c50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x404c95
cmp byte [esi + 1], 0
je 0x404c9d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x404cb2
cmp byte [esi + 1], 0
je 0x404ca4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x404cbb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x404c6e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x404cbb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x404ccf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004240a4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x404ced
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x404e01
jmp 0x404d10
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x404d21
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x404d3a
mov ebp, 0x404
cmp byte [esi], 0
je 0x404d5f
cmp byte [esi + 1], 0
je 0x404e01
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404d62
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x404d8a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404d84
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x404db0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x404d9b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0042ad70
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x404e01
lea eax, [ebp - 3]
test eax, eax
jl 0x404dec
dec eax
cmp byte [eax + ebx], 0x50
jne 0x404ddc
cmp byte [eax + ebx + 1], 0x4b
jne 0x404ddc
cmp byte [eax + ebx + 2], 5
jne 0x404ddc
cmp byte [eax + ebx + 3], 6
je 0x404de2
test eax, eax
jge 0x404dc0
jmp 0x404dec
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x404e01
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x404d04
push ebx
call fcn.00423fc7
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4057d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4057ee
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4057e2
cmp dword [edi + 0x7c], ebx
je 0x4057fd
call fcn.00405bc0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00405540
add esp, 0xc
test eax, eax
je 0x405824
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.004240a4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x405865
push 0x4000
call fcn.004240a4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x405872
push esi
call fcn.00423fc7
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x4058ba
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004045f0
test eax, eax
jne 0x4058ba
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4058e4
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x4058ed
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x405927
mov cl, byte [ebp]
cmp cl, bl
je 0x405927
call fcn.004042e0
add ebp, 1
jne 0x405916
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x405cc0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x405d61
cmp dword [esi + 4], 0xffffffff
jne 0x405d61
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405cf0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x405d29
cmp ax, 0x2f
je 0x405d29
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405d16
mov eax, dword [0x43de54]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00404a40
add esp, 4
test eax, eax
jne 0x405d47
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00404e20
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x4063f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4487e8]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x406430
push esi
call ebp
cmp eax, 0xffffffff
jne 0x406430
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x406516
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x40644f
cmp ax, 0x5c
jne 0x406451
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x406443
push edi
cmp ecx, ebx
je 0x406494
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0042ad70
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.004063f0
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x4064bf
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x4064b0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4064b0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064c3
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4064e0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4064e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x406516
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004238c2
add esp, 0x414
ret
Function at 0x4088fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x408945
call fcn.0040baa9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408945
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408988
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x408971
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x408971
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x408985
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ddfa
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43686f
call fcn.0042491a
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40de1f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40de65
lea ecx, [ebp - 0x10]
call fcn.0040801f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ae56
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a40
mov eax, esi
call fcn.004249f2
ret 8

Function at 0x41ca6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41cab2
call fcn.0040baa9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41cab2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41cace
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041c5e3
mov esi, eax
test edi, edi
je 0x41cacc
test ebx, ebx
je 0x41cacc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x421c38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x421c5c
cmp dword [edi + 0x54], 0
jne 0x421c5c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040baa9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00421bf9
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4238c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4487e8]
jne 0x4238cc
repz ret
jmp fcn.00428e06

Function at 0x42fba2
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.00428815
and dword [ebp - 4], 0
cmp dword [0x44c508], 0
mov ebx, eax
jne 0x42fc53
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42fd04
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42fd04
push eax
call fcn.004287a3
mov dword [esp], 0x43c304
push edi
mov dword [0x44c508], eax
call esi
push eax
call fcn.004287a3
mov dword [esp], 0x43c2f0
push edi
mov dword [0x44c50c], eax
call esi
push eax
call fcn.004287a3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44c510], eax
call esi
push eax
call fcn.004287a3
pop ecx
mov dword [0x44c518], eax
test eax, eax
je 0x42fc53
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004287a3
pop ecx
mov dword [0x44c514], eax
mov eax, dword [0x44c514]
cmp eax, ebx
je 0x42fcab
cmp dword [0x44c518], ebx
je 0x42fcab
push eax
call fcn.0042881e
push dword [0x44c518]
mov esi, eax
call fcn.0042881e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42fcab
test edi, edi
je 0x42fcab
call esi
test eax, eax
je 0x42fca2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42fca2
test byte [ebp - 0xc], 1
jne 0x42fcab
or dword [ebp + 0x10], 0x200000
jmp 0x42fce4
mov eax, dword [0x44c50c]
cmp eax, ebx
je 0x42fce4
push eax
call fcn.0042881e
pop ecx
test eax, eax
je 0x42fce4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42fce4
mov eax, dword [0x44c510]
cmp eax, ebx
je 0x42fce4
push eax
call fcn.0042881e
pop ecx
test eax, eax
je 0x42fce4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c508]
call fcn.0042881e
pop ecx
test eax, eax
je 0x42fd04
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42fd06
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x5d894867
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x706c6982
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219