joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x1c], 0x47
mov edx, 1
imul eax, edx, 0xe
mov byte [ebp + eax - 0x1c], 0x61
mov ecx, 1
imul edx, ecx, 0x11
mov byte [ebp + edx - 0x1c], 0x57
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x1c], 0x64
mov eax, 1
shl eax, 3
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x1c], 0x4d
mov edx, 1
imul eax, edx, 0xd
mov byte [ebp + eax - 0x1c], 0x4e
mov ecx, 1
imul edx, ecx, 0xf
mov byte [ebp + edx - 0x1c], 0x6d
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x1c], 0x6c
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x1c], 0x46
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0x1c], 0x6c
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x1c], 0x75
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x1c], 0x65
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x1c], 0x6f
mov eax, 1
imul ecx, eax, 0x12
mov byte [ebp + ecx - 0x1c], 0
mov edx, 1
shl edx, 4
mov byte [ebp + edx - 0x1c], 0x65
lea eax, [ebp - 0x1c]
push eax
call fcn.00404790
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40615e
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4061f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x10], 0x73
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x10], 0x63
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x10], 0x74
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x10], 0x50
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x10], 0x6f
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x10], 0x45
mov edx, 1
imul eax, edx, 0xb
mov byte [ebp + eax - 0x10], 0
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x10], 0x73
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x10], 0x78
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x10], 0x72
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x10], 0x69
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x10], 0x65
lea edx, [ebp - 0x10]
push edx
call fcn.00404790
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4062b1
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
call fcn.004046b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4063d0
mov eax, 1
imul ecx, eax, 9
mov byte [ebp + ecx - 0x1c], 0x54
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x1c], 0x57
mov ecx, 1
imul edx, ecx, 0xe
mov byte [ebp + edx - 0x1c], 0
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x1c], 0x78
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x1c], 0x74
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x1c], 0x6f
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x1c], 0x77
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x1c], 0x65
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x1c], 0x6e
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x1c], 0x57
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x1c], 0x53
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x1c], 0x64
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4063c6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x407ee3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041cfe8
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407f1a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00407f3b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4180be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x418103
call fcn.0041cfe8
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41811f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041fb50
mov ebx, eax
test edi, edi
je 0x41811d
test esi, esi
je 0x41811d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x487dfa
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004fc958
call fcn.0041d03c
cmp dword [eax + 0x14], 0
jne 0x487e15
mov ecx, esi
pop esi
jmp fcn.00487200
pop esi
ret

Function at 0x487f1b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041c714
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x487f57
call fcn.0048813a
mov dword [esi + 0xc], 1
jmp 0x487f5c
call fcn.0048813a
cmp dword [esi], 0
je 0x487fa5
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x487f7f
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00418176
jmp 0x487f90
push 0xff
mov ecx, esi
call fcn.0040a1ce
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040afb9
jmp 0x487fc9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x487fc9
push dword [esi]
push dword [ebp - 4]
call fcn.0041d1eb
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48808f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0048813a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4880d7
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00418176
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040afb9
jmp 0x4880e2
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041d1eb
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4fa605
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.005051f3
call fcn.0041d03c
cmp dword [eax + 0x14], 0
jne 0x4fa620
mov ecx, esi
pop esi
jmp fcn.004f9eee
pop esi
ret
Function at 0x5378dc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59d058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0052c762
mov dword [ebp - 0x14], eax
cmp dword [0x5a86b4], esi
jne 0x5379cf
push 0x800
push esi
push 0x57a5e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x53795c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x537aaf
push esi
push esi
push 0x57a5e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x537aaf
push 0x57a5f8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x537aaf
push eax
call ebx
push 0x57a604
push edi
mov dword [0x5a86b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x57a614
push edi
mov dword [0x5a86b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a86bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a86c4], eax
test eax, eax
je 0x5379cc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a86c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5379f4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5379e7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x537a09
push 4
pop eax
jmp 0x537ab1
cmp dword [ebp - 0x14], esi
je 0x537a09
push dword [0x5a86b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5379ee
mov eax, dword [0x5a86c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x537a67
cmp dword [0x5a86c4], edi
je 0x537a67
push eax
call ebx
push dword [0x5a86c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x537a67
test eax, eax
je 0x537a67
call ecx
test eax, eax
je 0x537a5c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x537a5c
test byte [ebp - 8], 1
jne 0x537a67
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x537a97
mov eax, dword [0x5a86b8]
cmp eax, edi
je 0x537a94
push eax
call ebx
test eax, eax
je 0x537a94
call eax
mov esi, eax
test esi, esi
je 0x537a94
mov eax, dword [0x5a86bc]
cmp eax, edi
je 0x537a94
push eax
call ebx
test eax, eax
je 0x537a94
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a86b4]
call ebx
test eax, eax
je 0x537aaf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x537ab1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527a6b
mov esp, ebp
pop ebp
ret
Function at 0x40252d
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x402582
push dword [esp + 0x10]
push 0x4024ac
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x405a48]
test esi, esi
je 0x4025db
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40257a
cmp byte [esi + 0x10], 0
je 0x40257a
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x402556
jmp 0x4025db
mov esi, dword [0x405a48]
test esi, esi
je 0x4025db
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4025d4
cmp byte [esi + 0x11], 0
je 0x4025b0
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4025c7
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x405a48
call fcn.0040355e
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40258f
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x402663
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4027ab
xor ecx, ecx
cmp word [eax], cx
je 0x4027ab
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4026bc
cmp eax, 3
jne 0x4026f6
cmp word [esp + 0xa], 0x3a
jne 0x4026f6
cmp eax, 2
jne 0x4026da
lea eax, [esp + 8]
push 0x404010
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4027ab
push 0xfffffffffffffffe
pop edi
jmp 0x4027ab
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x40270b
cmp ax, bx
jne 0x402715
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4026fe
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x402754
test byte [esp + 0x21c], 0x10
je 0x40273b
push 0xfffffffffffffffe
pop edi
jmp 0x40274b
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4027a9
cmp word [esp + 0x10], bp
jne 0x402762
cmp word [esp + 0x12], bp
je 0x402781
cmp word [esp + 0x10], bx
jne 0x402770
cmp word [esp + 0x12], bx
je 0x402781
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4027a9
cmp word [esp + 0x12], ax
jne 0x4027a9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x402796
test al, 0x10
je 0x4027a9
jmp 0x4027a6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4027a9
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x40286e
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x402943
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402942
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00402b95
push esi
mov word [ebp - 0x20], ax
call fcn.00402bbb
push esi
mov word [ebp - 0x1e], ax
call fcn.00402bdd
push esi
mov word [ebp - 0x1c], ax
call fcn.00402bfe
push esi
mov word [ebp - 0x1a], ax
call fcn.00402c1f
push esi
mov word [ebp - 0x18], ax
call fcn.00402c40
push esi
mov word [ebp - 0x16], ax
call fcn.00402c61
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x402921
lea eax, [ebp - 8]
jmp 0x40292f
cmp dword [ebp + 0xc], 2
jne 0x40292c
lea ecx, [ebp - 8]
jmp 0x40292f
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402d00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x402d3c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4030a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x405a64]
call fcn.004033e9
test eax, eax
je 0x4030eb
cmp dword [eax + 4], 0
je 0x4030d5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00403150
movsx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x403150
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x403171
push esi
call fcn.00402d00
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x4031e5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x4031d2
dec ecx
je 0x4031bd
sub ecx, 2
je 0x4031aa
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x40322a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x40324b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x403270
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x403377
cmp dword [esi + 0x14], 1
jne 0x4032bb
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x403338
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x403323
dec eax
je 0x40330c
sub eax, 2
je 0x4032f7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00402d00
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x403365
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x4032e1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [edi - 0x37f274d4]
mov dh, 0x40
add byte [edx], cl
add ecx, 0x7b
push 0x40c874
mov edi, 0x668015ff
inc eax
add byte [ecx + 0x4102ac], ah
cmp dword [edi + esi], 0x60
sal byte [edi + ecx + 0x50], 0x68
push esp
shl dl, cl
add bh, bh
adc eax, 0x40c1ca
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
add eax, 0xec81ec8b
push edi
add byte [esi], bh
mov eax, dword [0x41d978]
push esi
sal byte [edx + 0x37], 0x40
mov eax, dword [eax]
je 0x4017bb
push 0x59613cdc
mov al, ch
imul eax, dword [eax - 0x42], 0
mov cx, word [0x410274]
jmp 0x4017cf
mov edx, dword [0x41e800]
push edx
push eax
call fcn.00405850
or ax, 0xf4
inc ecx
and dword [ebx + 0x411808], esp
mov dword [0x411808], eax
mov eax, dword [0x410288]
push 0x7b358b3d
add al, 0xbd
add byte [esi - 0x77], ah
xchg esi, eax
mov ah, 0xb
inc ecx
add byte [ebp + 0x5d7557c0], al
cwde
adc eax, 0x41185b
push edx
push 0x40f598
pop ds
salc
mov eax, dword [0x58410278]
add esp, 8
test dword [edi + 0x741e1574], esi
add al, byte [ecx]
push eax
push 0x413c40
push 0x40d476
call esi
add esp, 0xc
outsd dx, dword [esi]
pop esp
sar byte [ebx - 0x473f7b00], 1
adc ah, 0x40
add byte [ebp - 0x28], dh
mov eax, 0xd6d47c
push eax
push 0x40d4c7
call esi
stosb byte es:[edi], al
or eax, sym.imp.MSVCRT.dll__iob
add ecx, 0x20
mov ecx, 0x645415ff
inc eax
xlatb
add esp, 0xc
wait
aam 0x18
dec edi
inc eax
add byte [ebx + 0x40c18835], cl
add byte [eax + 0x60], ch
add byte [eax], al
push edx
push dword [ebx]
mov al, 0xb
inc ecx
add byte [ecx + 0x401410], ah
push 0x12
push eax
call esi
mov ecx, dword [0x41404c]
mov ebp, dword [eax + ebx]
rol byte [eax + 0x23], 1
add esp, 0x10
mov dword [0x410bc8], eax
push 0
push ecx
push edx
push 0x4117f8
call 0x7440b410
test eax, eax
je 0x4018a1
push eax
hlt
mov eax, dword [0xf67e027c]
test eax, eax
invalid

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
xchg ebp, eax
in al, dx
js 0x401e9d
mov esi, ebx
cmp edx, ebx
lea eax, [ebp - 0x78]
push 0x78
jp 0x401ea8
call fcn.00408716
mov ecx, dword [ebp - 0x35]
rcl dword [0x72c0c8], 0x50
push ecx
add edx, 0x4a
push str._s:__s___d__n
push edx
leave
adc eax, sym.imp.MSVCRT.dll_fprintf
fldlg2
add al, byte [ecx - 0x20]
add esp, 0x14
fcmovb st(0), st(0)
je 0x401e8c
push eax
push 0xbfd254
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
push 0xffffffffffffff90
nop
nop
nop
mov esi, dword [ebp + 8]

Function at 0x405600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
je 0x40574a
nop
jmp 0x405617
xor edi, edi
dec ecx
nop
mov esi, dword [ebx + ecx*4]
nop
add esi, edx
jmp 0x40562d
nop
xor eax, eax
jmp fcn.00405640
Function at 0x4080f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp - 0xb]
mov ecx, dword [ebp - 0x54]
push ebx
xchg ebx, eax
push edi
mov edi, dword [ebp + 0x40]
test eax, eax
insb byte es:[edi], dx
div dword [ebx + ecx - 0x75]
inc ebp
dec esp
mov dword [eax], 0
jmp 0x408170
dec esi
sar byte [edi + 0x34], 0x7c
or byte [ecx - 0x9200b4], al
jg 0x4081f4
sub al, byte [ebx + 0x41]
sar byte [ebp + esi + 0x7f], 0x7c
push ss
cmp eax, dword [esi + 0x72800000]
sbb eax, dword [ebp - 0x74e48a6b]
inc ebp
or ecx, dword [ebx + 0x57501455]
push edx
push 0xc04fe853
adc edi, edi
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
push 0
push 0xffffffffffffff8b
push eax
push ebx
call 0x471a90
mov ecx, eax
mov edx, dword [ecx - 0x76]
sal dword [edx + 0x2aeaf60a], 0x96
xor byte fs:[ecx - 0x7739745a], 0x1f
mov cl, 0xa6
mov eax, esi
mov byte [edi], bl
mov ebx, ecx
or ecx, esi
jne 0x4081db
mov eax, dword [ebp + 0x18]
mov eax, dword [ebx + 0x1c]
sub edi, eax
pop esi
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret