joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c00
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403d80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x406048]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.004014a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x401c7c
lea ecx, [ebp - 0x14]
push ecx
call fcn.004012d0
add esp, 4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402170
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401c7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x401d8a
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x401cb6
call edi
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x401d31
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x401d31
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x10]
call fcn.00402340
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00402170
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401d63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401d63
mov edx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
push edx
call edi
push 4
push 0
push esi
call edi
jmp 0x401d6a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x401d96
cmp ebx, 0xb7
jne 0x401d98
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401dbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x406070
call fcn.00402f2f
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x402c84
test esi, esi
jne 0x402c84
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x402c68
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402c62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402c62
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x402c51
cmp esi, eax
jae 0x402c55
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402c43
cmp esi, eax
jb 0x402c59
xor eax, eax
jmp 0x402c62
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x402c8d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x406070
call fcn.00402f2f
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x402bf5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d88
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402dba
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402db6
cmp esi, eax
jae 0x402dba
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402da8
cmp esi, eax
jb 0x402dc0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403476
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406048]
jne 0x403480
repz ret
jmp fcn.004038e4
Function at 0x494980
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5d000]
push edi
jmp 0x49499a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4949a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x494990
mov eax, 1
add ebx, ebx
jne 0x4949b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4949c4
jne 0x4949e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4949e3
dec eax
add ebx, ebx
jne 0x4949d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4949a8
add ebx, ebx
jne 0x4949df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x494a35
xor ecx, ecx
sub eax, 3
jb 0x4949fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x494a6a
sar eax, 1
mov ebp, eax
jmp 0x494a06
add ebx, ebx
jne 0x494a06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4949d4
inc ecx
add ebx, ebx
jne 0x494a14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4949d4
add ebx, ebx
jne 0x494a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x494a16
jne 0x494a32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x494a16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x494a54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x494a46
jmp 0x494996
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x494a54
add edi, ecx
jmp 0x494996
pop esi
mov edi, esi
mov ecx, 0x318d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x494a72
cmp byte [edi], 0x1b
jne 0x494a72
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 al, bl
loop 0x494a77
lea edi, [esi + 0x91000]
mov eax, dword [edi]
or eax, eax
je 0x494aef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x95898]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x959b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x494aa4
mov ecx, edi
jns 0x494ad3
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 + 0x959b4]
or eax, eax
je 0x494ae9
mov dword [ebx], eax
add ebx, 4
jmp 0x494ac1
call dword [esi + 0x959c4]
mov ebp, dword [esi + 0x959b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x494b23
sub esp, 0xffffff80
jmp 0x453e3d
Function at 0x10001260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x1001bc88], eax
mov dword [0x1001bc84], eax
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp - 0x20], 0
jne 0x1000131c
push ebx
lea ebx, [eax + 1]
mov ecx, 0x1000b0ec
push esi
sub ecx, 0x3161c27e
lea eax, [ebp - 0x1c]
call fcn.10001340
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
test eax, eax
jne 0x100012d4
lea ebx, [eax + 3]
mov ecx, 0x1000b0f8
sub ecx, 0x29bcd4b9
lea eax, [ebp - 0x10]
call fcn.100013d0
push eax
call esi
test eax, eax
jne 0x100012d4
xor cl, cl
jmp 0x100012d6
mov cl, 1
test bl, 2
je 0x100012ed
and ebx, 0xfffffffd
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
pop esi
test bl, 1
pop ebx
je 0x10001303
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov byte [ebp - 0x12], al
test cl, cl
je 0x1000131c
push 0
push 0
push 0
push 0x10001080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.10001460
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001460
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000146a
repz ret
jmp fcn.100017aa
Function at 0x10007701
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100029a8
and dword [ebp - 0x14], 0
cmp dword [0x1001bc6c], 0
mov dword [ebp - 0x18], eax
jne 0x100077b4
push 0x1000b024
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000785c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000b018
push ebx
call edi
test eax, eax
je 0x1000785c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1000b008
push ebx
mov dword [0x1001bc6c], eax
call edi
push eax
call esi
push 0x1000aff4
push ebx
mov dword [0x1001bc70], eax
call edi
push eax
call esi
push 0x1000afd8
push ebx
mov dword [0x1001bc74], eax
call edi
push eax
call esi
mov dword [0x1001bc7c], eax
test eax, eax
je 0x100077b4
push 0x1000afc0
push ebx
call edi
push eax
call esi
mov dword [0x1001bc78], eax
mov eax, dword [0x1001bc78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000780d
cmp dword [0x1001bc7c], ecx
je 0x1000780d
push eax
call esi
push dword [0x1001bc7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000780d
test ebx, ebx
je 0x1000780d
call edi
test eax, eax
je 0x10007804
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10007804
test byte [ebp - 8], 1
jne 0x1000780d
or dword [ebp + 0x10], 0x200000
jmp 0x10007840
mov eax, dword [0x1001bc70]
cmp eax, dword [ebp - 0x18]
je 0x10007840
push eax
call esi
test eax, eax
je 0x10007840
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10007840
mov eax, dword [0x1001bc74]
cmp eax, dword [ebp - 0x18]
je 0x10007840
push eax
call esi
test eax, eax
je 0x10007840
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001bc6c]
call esi
test eax, eax
je 0x1000785c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000785e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001460
leave
ret
Function at 0x9f8f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa0d9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x9f9002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.009fcdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x9f9002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.009f46e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.009fd20b
push 0x10
call fcn.009fd1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x9f8fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009e91c0
jmp 0x9f8fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.009f8b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x9f8ff0
mov ecx, edi
call fcn.009e92c0
push edi
call fcn.009fd1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x9f9021
inc ebx
cmp ebx, 0x20
jb 0x9f8f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x9fc1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009fc140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009fc140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009fc140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009fc140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9fcbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9fcc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa0e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9fcc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9fcc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4018d3
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
call sub.kernel32.dll_GetProcessHeap
mov dword [ebp - 0x14], eax
push 0x208
push 0
push dword [ebp - 0x14]
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x408020
push 1
push 0
push 0x408010
call sub.ole32.dll_CoCreateInstance
mov dword [ebp - 0x10], eax
test eax, eax
js 0x4019ba
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
push eax
push 0x408030
push dword [ebp - 8]
call dword [edx]
mov dword [ebp - 0x10], eax
test eax, eax
js 0x4019ac
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [edx + 0x50]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [edx + 0x24]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [edx + 0x44]
mov dword [ebp - 0x10], eax
push 0x104
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push dword [ebp - 0xc]
call dword [edx + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp - 8]
call dword [edx + 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0x14]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x10]
leave
ret 0x10

Function at 0x40253a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push 0x3ec
push dword [0x408330]
call sub.user32.dll_GetDlgItem
mov dword [0x448f6c], eax
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
push 0
push 0x80
push 4
lea eax, [ebp - 0x30]
push eax
push 3
push 0xc0000000
push str.Log.txt
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4025f7
mov dword [0x448f70], eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x4025df
push 2
push 0
push 0
push dword [0x448f70]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x407b65
push dword [0x448f70]
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x407b65
push dword [0x448f70]
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push 0x27
push str._TestMem5_Log_File__r_n
push dword [0x448f70]
call sub.kernel32.dll_WriteFile
leave
ret
Function at 0x4025f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
cmp dword [ebp + 0xc], 0x10000
jb 0x402666
cmp dword [ebp + 8], 0
je 0x402666
push dword [ebp + 0xc]
push 0
push 0x180
push dword [ebp + 8]
call sub.user32.dll_SendMessageA
cmp dword [0x448f70], 0
je 0x402660
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
mov ecx, eax
push 0
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0xc]
push dword [0x448f70]
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x407b65
push dword [0x448f70]
call sub.kernel32.dll_WriteFile
inc dword [0x448f74]
leave
ret 8

Function at 0x40331f
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4032e8
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403306
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x403364
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40334b
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x403354
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40335e
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x403340
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4032ca
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4033b1
dec eax
je 0x4033a8
sub eax, 3
je 0x40339f
mov dword [ebp - 4], 0x40
jmp 0x4033ce
mov dword [ebp - 4], 4
jmp 0x4033b4
mov dword [ebp - 4], 0x20
jmp 0x4033b4
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x403400
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x403380
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00402c11
mov byte [0xffb6e1c6], al
jne 0x40340b
push 1
push esi
call edi
mov eax, esi
jmp 0x40340c
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push 0xa
push 0x1001
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401925
jmp 0x401b16
mov dword [0x403c74], eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x40193b
jmp 0x401b16
mov dword [0x403c78], eax
push dword [0x403c74]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x401956
jmp 0x401b16
mov dword [0x403c7c], eax
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x40196a
jmp 0x401b16
mov dword [0x403c80], eax
mov ebx, eax
mov dword [ebp - 8], eax
push 0x10
push ebx
push 0x403450
call sub.kernel32.dll_RtlMoveMemory
add ebx, 0x10
mov eax, dword [0x403c78]
sub eax, 0x10
push eax
push ebx
call fcn.00401a90
mov eax, dword [ebx]
add ebx, 4
mov dword [0x410684], eax
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x401a09
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410690], eax
push dword [ebp - 4]
push ebx
push dword [0x410690]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410694], eax
push dword [ebp - 4]
push ebx
push dword [0x410694]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [0x410698], eax
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [0x41069c], eax
cmp dword [0x41069c], 2
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a8], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a0], eax
cmp dword [0x4106a0], 1
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a4], eax
mov eax, dword [ebx]
mov dword [0x4106b0], eax
add ebx, 4
mov ecx, ebx
sub ecx, dword [ebp - 8]
mov eax, dword [0x403c78]
sub eax, ecx
mov dword [0x41068c], eax
push dword [0x41068c]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [0x410688], eax
push dword [0x41068c]
push ebx
push dword [0x410688]
call sub.kernel32.dll_RtlMoveMemory
push dword [0x403c7c]
call sub.kernel32.dll_FreeResource
pop ebx
leave
ret

Function at 0x4014e6
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x4014fa
cmp dl, 0xcc
jne 0x401544
inc eax
cmp eax, 0xffffffff
jle 0x4014ed
mov al, byte [ecx]
cmp al, 0x8b
je 0x40150a
cmp al, 0x89
jne 0x401544
cmp byte [ecx + 1], 0xff
jne 0x401544
mov eax, 0x40189c
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x436a10], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [0x42a014]
push eax
call dword [0x42a034]
mov al, 1
ret 0xc
xor al, al
jmp 0x401541
Function at 0x10001410
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x1002b3ec]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.100052e0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.10005380
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.10011556
add esp, 0x68
ret