joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043a8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x670]
sub esp, 0x6f0
mov eax, dword [0x44d790]
xor eax, ebp
mov dword [ebp + 0x66c], eax
push esi
push edi
mov edi, dword [ebp + 0x678]
push edi
mov esi, 0x124
lea eax, [ebp + 0x1dc]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.0042297b
push 0x43e010
lea eax, [ebp + 0x1dc]
push esi
push eax
call fcn.00421be6
push edi
lea eax, [ebp + 0x424]
push esi
push eax
call fcn.0042297b
push 0x43e000
lea eax, [ebp + 0x424]
push esi
push eax
call fcn.00421be6
add esp, 0x30
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x404436
xor eax, eax
jmp 0x40454b
push ebx
lea eax, [ebp + 0x424]
push eax
lea eax, [ebp + 0x1dc]
push esi
push eax
call fcn.0042297b
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0xc
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x404527
lea eax, [ebp - 0x48]
push 0x43e00c
push eax
call fcn.00421b95
pop ecx
pop ecx
test eax, eax
je 0x404536
lea eax, [ebp - 0x48]
push 0x43e004
push eax
call fcn.00421b95
pop ecx
pop ecx
test eax, eax
je 0x404536
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x424]
push esi
push eax
call fcn.00421be6
add esp, 0xc
test byte [ebp - 0x74], 0x10
je 0x4044e0
lea eax, [ebp + 0x424]
push eax
call fcn.004043a8
pop ecx
test eax, eax
je 0x404562
lea eax, [ebp + 0x424]
push eax
call ebx
jmp 0x40450e
test byte [ebp - 0x74], 1
je 0x4044f8
push 0x80
lea eax, [ebp + 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40450e
push dword [ebp - 0x78]
call edi
lea eax, [ebp + 0x1dc]
push eax
lea eax, [ebp + 0x424]
push esi
push eax
call fcn.0042297b
add esp, 0xc
jmp 0x404536
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x404536
and dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0
jne 0x404461
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x80]
call ebx
pop ebx
mov ecx, dword [ebp + 0x66c]
pop edi
xor ecx, ebp
pop esi
call fcn.00422088
add ebp, 0x670
leave
ret
push dword [ebp - 0x78]
call edi
xor eax, eax
jmp 0x40454a
Function at 0x4045fa
Capabilities:
Clear file content
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
lea eax, [ebp - 0x40]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4047bf
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, 0x80
push esi
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4047bb
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push esi
push 4
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40467d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x4047b5
cmp dword [ebp + 0x10], ebx
je 0x404695
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xb7
cmp eax, edi
je 0x4047a4
mov esi, 0x10000
push esi
call fcn.00404a28
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x4046bf
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
push 8
jmp 0x4047b5
push dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
mov dword [ebp - 0x10], ebx
call dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x404720
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40473f
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404793
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x404793
add dword [ebp - 0x1c], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
adc dword [ebp - 0x18], ebx
push eax
push 1
call dword [ebp + 0x14]
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4046de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x26
jne 0x40479b
push dword [ebp - 0xc]
call fcn.00404a1d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 8]
call esi
push dword [ebp - 0x40]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [ebp + 0x14]
xor eax, eax
inc eax
jmp 0x4047bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 0xc]
call fcn.00404a1d
pop ecx
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406886
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 0x4068aa
cmp dword [edi + 0x54], 0
jne 0x4068aa
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004075b3
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.00406847
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 0x40991d
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 0x409965
call fcn.004075b3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x409965
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4099a8
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 0x409991
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 0x409991
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4099a5
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 0x40f8c6
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 0x40f90d
call fcn.004075b3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f90d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f929
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f43e
mov esi, eax
test edi, edi
je 0x40f927
test ebx, ebx
je 0x40f927
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41006b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43b651
call fcn.00422097
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410090
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4100d6
lea ecx, [ebp - 0x10]
call fcn.00401650
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.00406a4d
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.00401243
mov eax, esi
call fcn.0042216f
ret 8

Function at 0x422088
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d790]
jne 0x422092
repz ret
jmp fcn.0042905c

Function at 0x42e33d
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.00426dc9
and dword [ebp - 4], 0
cmp dword [0x451880], 0
mov ebx, eax
jne 0x42e3ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42e49f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42e49f
push eax
call fcn.00426d57
mov dword [esp], 0x441e18
push edi
mov dword [0x451880], eax
call esi
push eax
call fcn.00426d57
mov dword [esp], 0x441e04
push edi
mov dword [0x451884], eax
call esi
push eax
call fcn.00426d57
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451888], eax
call esi
push eax
call fcn.00426d57
pop ecx
mov dword [0x451890], eax
test eax, eax
je 0x42e3ee
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00426d57
pop ecx
mov dword [0x45188c], eax
mov eax, dword [0x45188c]
cmp eax, ebx
je 0x42e446
cmp dword [0x451890], ebx
je 0x42e446
push eax
call fcn.00426dd2
push dword [0x451890]
mov esi, eax
call fcn.00426dd2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42e446
test edi, edi
je 0x42e446
call esi
test eax, eax
je 0x42e43d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e43d
test byte [ebp - 0xc], 1
jne 0x42e446
or dword [ebp + 0x10], 0x200000
jmp 0x42e47f
mov eax, dword [0x451884]
cmp eax, ebx
je 0x42e47f
push eax
call fcn.00426dd2
pop ecx
test eax, eax
je 0x42e47f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42e47f
mov eax, dword [0x451888]
cmp eax, ebx
je 0x42e47f
push eax
call fcn.00426dd2
pop ecx
test eax, eax
je 0x42e47f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451880]
call fcn.00426dd2
pop ecx
test eax, eax
je 0x42e49f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e4a1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4354e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
jmp 0x435512
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jge 0x435584
mov ecx, dword [ebp - 0xc]
add ecx, 1
movzx edx, cl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
movzx ecx, al
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
movzx eax, dl
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
mov ecx, dword [ebp - 0x18]
xor edx, dword [ecx + eax*4]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov byte [eax], dl
jmp 0x435509
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x435620
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, 0x43
mov word [ebp - 4], ax
jmp 0x43563d
mov cx, word [ebp - 4]
add cx, 1
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
cmp edx, 0x5a
jg 0x43574b
mov eax, dword [0x443758]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x44375c]
mov dword [ebp - 0x40], ecx
mov dx, word [ebp - 4]
mov word [ebp - 0x44], dx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
je 0x435684
cmp dword [ebp - 0x48], 2
jne 0x43568e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x435690
jmp 0x435631
mov ecx, dword [0x443760]
mov dword [ebp - 0x3c], ecx
mov edx, dword [0x443764]
mov dword [ebp - 0x38], edx
mov eax, dword [0x443768]
mov dword [ebp - 0x34], eax
mov cx, word [0x44376c]
mov word [ebp - 0x30], cx
xor edx, edx
mov word [ebp - 0x2e], dx
mov ax, word [ebp - 4]
mov word [ebp - 0x34], ax
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4356ea
jmp 0x435631
mov dword [ebp - 0x4c], 0
push 0
lea edx, [ebp - 0x4c]
push edx
push 0x20
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x74004
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x435723
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x435631
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 0xf]
test ecx, ecx
je 0x435746
mov edx, dword [ebp + 8]
mov ax, word [ebp - 4]
mov word [edx], ax
mov eax, 1
jmp 0x43574d
jmp 0x435631
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x438d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
xor eax, eax
mov word [ebp - 0x208], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x206]
push ecx
call fcn.004221b0
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
call fcn.004379d0
test eax, eax
jne 0x438e03
mov dword [ebp - 8], 0x200
push str.diskpt
push str.SYSTEMCurrentControlSetServices_s
push 0x80
lea eax, [ebp - 0x310]
push eax
call fcn.00421c63
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 4]
push eax
push str.GUID
lea ecx, [ebp - 0x310]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x438e03
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x438e64
jmp fcn.0047ca54
mov esp, ebp
pop ebp
ret
Function at 0xc471b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c47308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc471de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc471ca
add dl, dl
jne 0xc471e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc4723c
xor eax, eax
add dl, dl
jne 0xc471f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc472dd
add dl, dl
jne 0xc47205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc47210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4721b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc47226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc47232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc471d5
mov eax, 1
add dl, dl
jne 0xc4724a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc47255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc47241
sub eax, ebx
mov ebx, 1
jne 0xc47288
mov ecx, 1
add dl, dl
jne 0xc4726e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc47279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc47265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc471d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc4729f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc472aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc47296
cmp eax, 0x7d00
jae 0xc472cd
cmp eax, 0x500
jb 0xc472c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc471d5
cmp eax, 0x7f
ja 0xc472d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc471d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc472fe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc471d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
inc eax
inc eax
mov eax, ecx
mov eax, 0x725097a6
nop
nop
mov eax, ebx
inc eax
inc eax
nop
cmp eax, 0x61b75fae
mov eax, ebx
nop
inc eax
cmp eax, 0xffffffee
inc eax
mov eax, ebx
cmp eax, 0xa921c66f
cmp eax, 0x77
mov eax, ebx
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
mov eax, ebx
cmp eax, 0xc949b2bd
inc eax
cmp eax, 0x573bc9d0
cmp eax, 0xef9cf5f4
mov eax, ebx
inc eax
mov eax, 0x4c34b0af
nop
nop
inc eax
cmp eax, 0xe50c0cdb
mov eax, ebx
inc eax
mov eax, 0x86224a66
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0xfffffffa
cmp eax, 0xffffff96
mov eax, ebx
nop
inc eax
nop
cmp eax, 0x3567108d
cmp eax, 0xb9f21835
nop
mov eax, ecx
mov eax, ecx
mov eax, ecx
nop
mov eax, 0xb63873f2
cmp eax, 0x44bc47a5
mov eax, ecx
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
nop
mov eax, ebx
mov eax, 0xdcd33cde
mov eax, ebx
cmp eax, 0x73111891
mov eax, ebx
mov eax, 0x18d7b073
mov eax, ecx
inc eax
cmp eax, 0x49
mov eax, 0x88fdc889
nop
cmp eax, 0xffffff87
cmp eax, 0x5d
inc eax
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
mov eax, ecx
mov eax, 0x24bbd20a
nop
nop
mov eax, ecx
mov eax, ecx
inc eax
inc eax
cmp eax, 0x70
cmp eax, 0xfffffffb
inc eax
nop
cmp eax, 0x5c443bdd
cmp eax, 0x390fdeb1
inc eax
mov eax, ebx
mov eax, ebx
mov eax, ecx
nop
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, ebx
mov eax, 0x5b4a592e
cmp eax, 0x70
cmp eax, 0xccf5531f
mov eax, ebx
mov eax, ebx
inc eax
mov eax, 0xf4640230
inc eax
mov eax, ecx
nop
mov eax, 0xdcd8aa55
cmp eax, 0x2e9e584b
inc eax
nop
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1001e770
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001e5e6

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x4f4a04
Capabilities:
Encode data using xor

Disassembly:
push 0x4f478b
pop eax
push 0x46e580a4
pop edi
add edx, edx
call fcn.004f4a38
or edx, edx
and edx, edi
xor dword [esi], eax
push edx
pop edi
add esi, 1
or edi, edx
add edi, edi
mov edx, 0x55fd2956
cmp esi, ebx
jne fcn.004f4a04
sub edi, edi
mov edx, edx
ret
Function at 0x40467d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d670]
jne 0x404687
repz ret
jmp fcn.0040918e

Function at 0x40c154
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.00402fd2
and dword [ebp - 4], 0
cmp dword [0x442c14], 0
mov ebx, eax
jne 0x40c205
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c2b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c2b6
push eax
call fcn.00402f60
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x442c14], eax
call esi
push eax
call fcn.00402f60
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x442c18], eax
call esi
push eax
call fcn.00402f60
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x442c1c], eax
call esi
push eax
call fcn.00402f60
pop ecx
mov dword [0x442c24], eax
test eax, eax
je 0x40c205
push 0x43a858
push edi
call esi
push eax
call fcn.00402f60
pop ecx
mov dword [0x442c20], eax
mov eax, dword [0x442c20]
cmp eax, ebx
je 0x40c25d
cmp dword [0x442c24], ebx
je 0x40c25d
push eax
call fcn.00402fdb
push dword [0x442c24]
mov esi, eax
call fcn.00402fdb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c25d
test edi, edi
je 0x40c25d
call esi
test eax, eax
je 0x40c254
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c254
test byte [ebp - 0xc], 1
jne 0x40c25d
or dword [ebp + 0x10], 0x200000
jmp 0x40c296
mov eax, dword [0x442c18]
cmp eax, ebx
je 0x40c296
push eax
call fcn.00402fdb
pop ecx
test eax, eax
je 0x40c296
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c296
mov eax, dword [0x442c1c]
cmp eax, ebx
je 0x40c296
push eax
call fcn.00402fdb
pop ecx
test eax, eax
je 0x40c296
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442c14]
call fcn.00402fdb
pop ecx
test eax, eax
je 0x40c2b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c2b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1017425d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1017429c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1017429c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1017429c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1017429c
cmp dword [ecx + 0x74], 0xe
jbe 0x1017429c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret