joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1a50
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4d5626
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x52ade4]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004c2b51
cmp dword [0x566020], ebx
je 0x4a1ac0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004c0732
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x52ade4]
push ebp
push edi
mov edi, 1
mov dword [0x566020], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4a1ae9
mov dword [esp + 0x20], ebx
jmp 0x4a1af0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004c4da3
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004c081f
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4a1b4e
mov dword [esp + 0x14], ebx
jmp 0x4a1b55
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4a1b6f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4a1b69
cmp eax, 2
jne 0x4a1b6f
mov dword [esp + 0x18], edi
jmp 0x4a1b73
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4a1b81
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c2186
mov edi, eax
cmp edi, ebx
jne 0x4a1b91
xor eax, eax
jmp 0x4a1b94
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a1bbc
mov ecx, esi
call fcn.004c4da3
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4a1bd4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x566020], 0
test eax, eax
je 0x4a1bfd
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4a1bfd
push 1
push 0xd
push pe_nt_image_headers32
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004c0732
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004c0732
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4a3ab0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d5818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004c751f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004a39f0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004c744d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4a3b77
cmp dword [esp + 0x40], 1
jne 0x4a3b75
cmp ecx, eax
jge 0x4a3b77
mov eax, ecx
cmp eax, 0x12c
jge 0x4a3b83
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004a3bd0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c7591
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4a7ea0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4d5d06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x52ade4]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004c2b51
mov edx, dword [0x52ade4]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4a7efa
mov dword [esp + 0x1c], ebx
jmp 0x4a7f01
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004c4da3
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004c081f
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4a7f52
mov dword [esp + 0x14], ebx
jmp 0x4a7f59
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4a7f74
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4a7f6e
cmp eax, 2
jne 0x4a7f74
mov dword [esp + 0x18], edi
jmp 0x4a7f78
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4a7f86
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c2186
mov edi, eax
cmp edi, ebx
jne 0x4a7f96
xor eax, eax
jmp 0x4a7f99
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a7fc1
mov ecx, esi
call fcn.004c4da3
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4a7fdd
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a7ffc
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4a7ffc
push 1
push 0xd
push pe_nt_image_headers32
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004c0732
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004c0732
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4c2b51
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c2b89
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c0b8d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c0b65
jmp 0x4c2b95
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c44cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c4511
call fcn.004cacad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c4511
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c4508
xor eax, eax
jmp 0x4c4519
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c451f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c5fca
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4d6814
call fcn.004b0b84
push ecx
push ecx
push esi
push 0x14
call fcn.004c0473
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4c601d
mov ecx, esi
call fcn.004c0c80
mov eax, dword [0x52ade4]
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CFileException.0
mov dword [esi + 0xc], eax
call fcn.004c086f
jmp 0x4c601f
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x51a4d8
push eax
mov dword [ebp - 0x10], esi
call fcn.004b0fac
pop esi

Function at 0x4cb1dd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cb20b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cb229
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cb143
jmp 0x4cb229
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cb229
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cb143
test edi, edi
mov eax, edi
jne 0x4cb213
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4cda99
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4cdac1
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4cdad2
push 2
call edi
test ax, ax
jge 0x4cdad2
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004c2186
cmp dword [esi + 0x30], ebx
jne 0x4cdbac
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, pe_nt_image_headers32
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004c2186
cmp eax, dword [esp + 0x34]
jne 0x4cdbac
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4cdb48
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4cdb8d
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4cdbac
cmp eax, 0x205
je 0x4cdbac
cmp eax, 0x201
je 0x4cdbac
cmp eax, 0x204
je 0x4cdbac
cmp eax, ebx
jne 0x4cdb73
cmp dword [esp + 0x1c], 0x1b
je 0x4cdbac
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x56b188]
jbe 0x4cdba2
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4cdb05
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x402250
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x402282
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.004020b0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00403d30
pop ecx
mov esi, eax
test esi, esi
je 0x4022d7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.004020b0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x40b500], eax
mov dword [0x40b504], esi
jmp 0x4022df
push 1
call fcn.00401d40
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4022f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edx, eax
mov dword [ebp - 4], edx
test eax, eax
je 0x40239a
mov eax, dword [ebp - 4]
mov ebx, eax
xor ecx, ecx
jmp 0x40232d
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40231a
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x40232b
add ecx, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x402315
inc ecx
push ecx
call fcn.00403d30
pop ecx
mov edi, eax
mov dword [0x40b50c], eax
cmp dword [0x40b50c], 0
je 0x4023a7
mov eax, dword [ebp - 4]
mov ebx, eax
jmp 0x40237b
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x402356
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x402379
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x40236c
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x402351
mov byte [edi], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x40b5d4]
je 0x4023af
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4023af
mov eax, dword [0x40b5d4]
mov dword [ebp - 4], eax
jmp 0x40230c
push 1
call fcn.00401d40
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
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 0x61fcfa3c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x61fcfa46
pushal
call 0x61fcfa4c
pop ebp
sub ebp, 0x10
sub ebp, 0x3bfa3c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x61fcfa70
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x61fcfa79
mov eax, 0x3bfa3c
add eax, ebp
add eax, 0x63
mov ecx, 0x601
mov edx, 0x7d25c80c
xor byte [eax], dl
inc eax
dec ecx
jne 0x61fcfa90
jmp 0x61fcfaa3
xchg ecx, eax
xchg dword [ebp + 0xc0c0c30], eax
invalid
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.004011a6
lea eax, [ebp - 0x404]
push eax
call fcn.004011a6
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x4011a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4011b5
pop dword [ebp - 0x40]
mov eax, 0x4011b5
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x9b897a56
add dword [ebp - 0x50], 0xb2c8caf5
mov dword [ebp - 0x4c], 0x401432d
add dword [ebp - 0x4c], 0x2e320918
mov dword [ebp - 0x48], 0x12c742ca
add dword [ebp - 0x48], 0x39850164
mov dword [ebp - 0x44], 0xe905aabe
add dword [ebp - 0x44], 0x16fa5542
lea eax, [ebp - 0x50]
push eax
mov eax, 0xdb39634a
sub eax, 0xdaf892f6
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x56d93867
add dword [ebp - 0x50], 0x1d9930ef
mov dword [ebp - 0x4c], 0xd783061c
add dword [ebp - 0x4c], 0x69e95b59
mov dword [ebp - 0x48], 0x9d0412d3
sub dword [ebp - 0x48], 0x3994a667
mov dword [ebp - 0x44], 0x47c4ee22
add dword [ebp - 0x44], 0xb83b11de
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x8e0bde21
sub eax, 0x8dcb0dd5
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x37e13
push 0
call eax
mov ecx, 0xb717bada
add ecx, 0x48e88680
xor ebx, ebx
add ebx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x40]
mov edi, 0x6dae7264
sub edi, 0x1a3d49b6
add dword [ebp - 4], 0x45fd7327
mov edx, dword [esi]
xor dword [ebp - 0x20], edx
add edx, edi
mov dword [ebp - 0x2c], 0x7e06c517
mov dword [ebx], edx
sub dword [ebp - 0x30], 0xa9948257
add ebx, 0x42a1ea27
add ebx, 0xbd5e15dd
add esi, 4
loop 0x4012ce
add eax, 0x622804e7
sub eax, 0x62270cac
mov ebx, eax
add eax, 5
mov ecx, 0xf812442c
add ecx, 0x82dbbd4
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x412284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x40105e
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.00403523
add esp, 0x14
lea eax, [ebp - 0x804]
push eax
push 0x410a3c
call fcn.00402283
add eax, 0x40
push eax
call fcn.00401edf
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401da4
leave
ret
Function at 0x100e08a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e08b9
pop esi
ret
push ebx
push edi
push esi
call fcn.1010dfb0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1010dfb0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e08e1
push ebx
push esi
push edi
call fcn.100ca6c0
add esp, 0xc
push 0
call fcn.1010dfb0
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1010dfb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1010dfbf
pop dword [ebp - 0x28]
mov eax, 0x329ff61f
add eax, 0xdd70e9a0
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x74ca7
push 0
mov eax, 0xd0e5d63d
add eax, 0x3f303b57
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x3fce
mov edi, eax
mov ebx, 0x63317445
add ebx, 0xace6adbb
add ebx, dword [ebp - 0x28]
mov esi, 0x27029543
sub dword [ebp - 0x24], eax
mov edx, dword [ebx]
xor edx, esi
mov dword [ebp - 0x1c], 0xda6f10d1
mov dword [edi], edx
add dword [ebp - 0xc], ecx
add edi, 4
add ebx, 4
loop 0x1010e012
add eax, 0x2ec5f09e
add eax, 0xd13b016d
mov ebx, eax
add eax, 0x28f841b0
add eax, 0xd707be55
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x42104c
push str.userinfo.dat
mov esi, ecx
call fcn.00405327
mov edi, eax
add esp, 8
test edi, edi
je 0x40119d
xor ecx, ecx
mov eax, esi
test esi, esi
je 0x40117a
nop dword [eax + eax]
mov eax, dword [eax + 0x284]
inc ecx
test eax, eax
jne 0x401130
push edi
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push 4
push eax
call fcn.004071ae
add esp, 0x10
nop
push edi
push 1
push 0x288
push esi
call fcn.004071ae
mov esi, dword [esi + 0x284]
add esp, 0x10
test esi, esi
jne 0x401150
push edi
call fcn.00405501
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push 4
push eax
call fcn.004071ae
add esp, 0x10
push edi
call fcn.00405501
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x421060
call fcn.00401020
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x42104c
push str.bookinfo.dat
mov esi, ecx
call fcn.00405327
mov edi, eax
add esp, 8
test edi, edi
je 0x40124d
xor ecx, ecx
mov eax, esi
test esi, esi
je 0x40122a
nop dword [eax + eax]
mov eax, dword [eax + 0x58c]
inc ecx
test eax, eax
jne 0x4011e0
push edi
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push 4
push eax
call fcn.004071ae
add esp, 0x10
nop
push edi
push 1
push 0x590
push esi
call fcn.004071ae
mov esi, dword [esi + 0x58c]
add esp, 0x10
test esi, esi
jne 0x401200
push edi
call fcn.00405501
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push 4
push eax
call fcn.004071ae
add esp, 0x10
push edi
call fcn.00405501
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x421060
call fcn.00401020
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret