joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ddb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
push 0x118
push 0
mov esi, dword [ebp + 8]
push esi
call fcn.004046c0
add esp, 0xc
lea ecx, [esi + 0x12]
push 0x104
push dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [edi + 4]
cmp ecx, 0xffffffff
je 0x416e90
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x14]
push eax
push edx
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x416e2d
xor eax, eax
jmp 0x416e95
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x416e44
xor eax, eax
jmp 0x416e95
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
mov byte [esi + 0x10], 0
call fcn.004101c7
mov eax, dword [eax]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
lea edi, [esi + 8]
push ecx
mov dword [esi], eax
lea ecx, [ebp - 4]
call fcn.004101c7
mov ecx, dword [eax]
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov dword [edi], ecx
push eax
lea ecx, [ebp - 4]
call fcn.004101c7
mov eax, dword [eax]
cmp dword [esi], 0
mov dword [esi + 4], eax
jne 0x416e89
mov dword [esi], eax
cmp dword [edi], 0
jne 0x416e90
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x418503
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, 0x100
cmp edi, eax
ja 0x41854a
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x41854a
push esi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x418554
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x418b2d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
cmp dword [ecx + 0x7c], 0
mov esi, ecx
je 0x418b75
push dword [ebp + 8]
call fcn.0041bae6
mov esi, eax
test esi, esi
jne 0x418b4f
xor eax, eax
jmp 0x418ba0
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
sbb eax, eax
neg eax
jmp 0x418ba0
push dword [ebp + 0x10]
push 0x41f45c
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x10]
push dword [esi + 0x90]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419739
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
je 0x4197cf
mov ebp, 0x18000000
push ebx
call fcn.00412e80
mov esi, eax
test esi, esi
je 0x4197c0
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x4197c0
push ebx
push eax
call fcn.0041958d
test eax, eax
je 0x4197c0
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp dword [esp + 0x14], 0
jne 0x4197a9
mov ecx, eax
and ecx, ebp
cmp ecx, 0x10000000
jne 0x4197a2
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0x24], 2
jmp 0x4197c0
cmp dword [esp + 0x14], 0
je 0x4197c0
test ebp, eax
jne 0x4197c0
test byte [esi + 0x24], 2
je 0x4197c0
push 4
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x24], 0xfd
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x419759
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x41bb34
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x7c], 0
push esi
push edi
je 0x41bb8b
push dword [ebp + 8]
call fcn.0041bae6
mov esi, eax
test esi, esi
jne 0x41bb55
mov eax, dword [ebp + 0x10]
jmp 0x41bba0
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
mov dword [ebp - 8], 4
push ecx
push edx
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41bb86
mov eax, dword [ebp - 4]
jmp 0x41bba0
mov eax, dword [ebp + 0x10]
jmp 0x41bba0
push dword [ecx + 0x90]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41c2e1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41c37c
call fcn.00404718
sub esp, 4
xor eax, eax
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.CNoTrackObject.0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov esi, ecx
push 0xa
lea ecx, [esi + 0x30]
call fcn.00410415
lea ecx, [esi + 0x4c]
push 0xa
mov byte [ebp - 4], 1
call fcn.00410415
lea ecx, [esi + 0x68]
push 0xa
mov byte [ebp - 4], 2
call fcn.00410220
mov byte [ebp - 4], 3
mov eax, esi
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x4121bf
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x41c91e
Capabilities:
Allocate thread local storage

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], 4
mov dword [ecx + 8], 1
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41c94f
call fcn.004100e5
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x41cac8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x41cb6d
call fcn.00404718
sub esp, 4
push ebx
push esi
push edi
mov edi, ecx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x41cb02
mov edx, dword [ebp + 8]
cmp dword [ebx + 8], edx
jg 0x41cbc7
cmp dword [ebp + 0xc], 0
je 0x41cbc7
test ebx, ebx
jne 0x41cb53
push 0x10
call fcn.0041c8ee
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x41cb39
mov ebx, esi
mov dword [esi], vtable.CNoTrackObject.0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov dword [esi], vtable.CThreadData.0
jmp 0x41cb3b
xor ebx, ebx
xor eax, eax
push ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
call fcn.0041c88e
mov eax, dword [ebx + 0xc]
lea esi, [edi + 0xc]
test eax, eax
jne 0x41cb80
mov eax, dword [esi]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41cb8f
push 2
mov ecx, dword [esi]
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x41cb9d
call fcn.004100e5
mov eax, dword [ebx + 8]
mov ecx, dword [esi]
sub ecx, eax
shl ecx, 2
shl eax, 2
push ecx
push 0
add eax, dword [ebx + 0xc]
push eax
call fcn.004046c0
add esp, 0xc
mov ecx, dword [esi]
mov dword [ebx + 8], ecx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0xc]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret 8

Function at 0x41cc34
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, ecx
cmp dword [esi + 8], 1
jle 0x41ccb5
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 0xc], 0
je 0x41cc89
mov eax, dword [ebp - 0xc]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
cmp dword [edx + eax + 4], ecx
je 0x41cc89
mov eax, dword [esi + 0xc]
cmp dword [eax + ebx], 0
je 0x41cca3
mov dword [ebp - 4], 0
jmp 0x41cca3
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x41cc99
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [esi + 8], eax
jg 0x41cc62
cmp dword [ebp - 4], 0
je 0x41cce3
push esi
lea ecx, [edi + 0x14]
call fcn.0041c8a1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x41ccd9
push 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41cd45
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x41cd83
cmp dword [0x428388], 0
jne 0x41cd76
mov ecx, 0x428390
test ecx, ecx
je 0x41cd6c
call fcn.0041c91e
mov dword [0x428388], eax
jmp 0x41cd76
mov dword [0x428388], 0
mov ecx, dword [0x428388]
call fcn.0041c95d
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x428388]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41cda3
cmp dword [eax + 8], edi
jle 0x41cda3
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41cda5
xor edi, edi
test edi, edi
jne 0x41cdbd
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x428388]
call fcn.0041cac8
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x856058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008561a8
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 0x85607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85606a
add dl, dl
jne 0x856089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8560dc
xor eax, eax
add dl, dl
jne 0x856096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85617d
add dl, dl
jne 0x8560a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8560b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8560bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8560c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8560d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x856075
mov eax, 1
add dl, dl
jne 0x8560ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8560f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8560e1
sub eax, ebx
mov ebx, 1
jne 0x856128
mov ecx, 1
add dl, dl
jne 0x85610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x856119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x856105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x856075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x856136
cmp eax, 0x7d00
jae 0x85616d
cmp eax, 0x500
jb 0x856168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x856075
cmp eax, 0x7f
ja 0x856170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x856075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85619e
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 0x856075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x103c0dd4
Capabilities:
Encode data using xor

Disassembly:
ret 0x6c8a
jmp 0x103c0dde
pushal
call 0x103c0de4
pop ebp
sub ebp, 0x10
sub ebp, 0x3c0dd4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103c0e08
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103c0e11
mov eax, 0x3c0dd4
add eax, ebp
add eax, 0x63
mov ecx, 0x60d
mov edx, 0xfb333180
xor byte [eax], dl
inc eax
dec ecx
jne 0x103c0e28
jmp 0x103c0e3b
or ecx, dword [ebp + 0xb]
or dword [eax + eax*4 + 0x41018080], edi
js 0x103c0dc7
add byte [eax - 0x7cc7b27d], 0x80
add byte [eax - 0x7f7f57c6], 0x80
ja 0x103c0eb9
or dword [eax + 0xb], 1
mov word [eax + 0x45838080], es
or eax, 0x97ca4e4
test byte [ebp + ecx + 0x97ca4e4], ah
test byte [eax + ebp*8 - 0x7f7104b0], ah
call 0x90e920fa
sub dword [esp + 0x1dc6f0e8], 0x80856820
add byte [eax - 0x7f7f4b97], 0x80
or eax, 0x97ca4e4
lodsb al, byte [esi]
movsb byte es:[edi], byte [esi]
or ebp, dword [ebx + ecx + 5]
mov byte [eax + 0x150b8080], al
mov word [eax + 0xd0b8080], es
nop
add byte [eax - 0x7d96be80], 0xb1
add byte [ebx], 0x42
test cl, cl
pop dword [0x7f7f7f74]
or ebp, dword [esp - 0x7b5b1bf3]
inc edx
mov word [eax - 0x7b5bf3f5], es
add byte [eax - 0x4af1780], 0x8e
sub al, 0x81
adc ch, byte [ebp - 0x5b537e80]
or eax, 0x97ca4e4
in al, 0xa4
test byte [edx - 0x74], al
or byte [ebx], 0xc
movsb byte es:[edi], byte [esi]
test byte [eax + 0x50e88080], al
sti
mov es, word [eax - 0x52ed7e18]
add byte [ecx - 0x1bf25b54], 0xa4
jl 0x103c0ee1
mov word [eax + ebp*2 - 0x7f7f7f7b], fs
imul eax, ebp, 0xd5808082
or ebp, dword [edi + edi*2 - 0xb]
add byte [eax + 0x6c0bd580], 0x7f
cmc
invalid
Function at 0x401f1e
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x41a3fc
push eax
lea eax, [ebp - 0x148]
xor edi, edi
push eax
mov dword [ebp - 0x148], edi
xor ebx, ebx
call fcn.0040a2b6
add esp, 0xc
test eax, eax
je 0x401f61
or ebx, 0xffffffff
jmp 0x401fe6
xor eax, eax
push 0x3e
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4a]
push edi
push eax
call fcn.00409e10
push dword [ebp - 0x148]
lea eax, [ebp - 0x4c]
push 1
push 0x40
push eax
call fcn.0040a7eb
mov eax, 0x5a4d
add esp, 0x1c
cmp word [ebp - 0x4c], ax
jne 0x401fe3
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x148]
call fcn.0040aa63
push 0xf4
lea eax, [ebp - 0x140]
push edi
push eax
mov dword [ebp - 0x144], edi
call fcn.00409e10
push dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push 1
push 0xf8
push eax
call fcn.0040a7eb
add esp, 0x28
cmp dword [ebp - 0x144], 0x4550
je 0x401fe6
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x148], edi
je 0x401ffa
push dword [ebp - 0x148]
call fcn.0040ab4c
pop ecx
mov ecx, dword [ebp - 8]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00409256
leave
ret

Function at 0x4020b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
test edi, edi
je 0x402121
mov esi, dword [sym.imp.USER32.dll_GetParent]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x402112
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x402112
mov ebx, edi
push edi
jmp 0x4020ee
mov ebx, eax
push eax
call esi
test eax, eax
jne 0x4020eb
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x402112
push 0x3ff
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x402128
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x4020cb
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x402123

Function at 0x40212c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test ebx, ebx
je 0x402193
cmp dword [ebx + 4], 0
je 0x402193
mov eax, dword [ebx]
and dword [ebp - 8], 0
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x40218d
push edi
push dword [esi + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402186
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], 0
je 0x402186
inc dword [ebp - 8]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esi]
cmp esi, dword [ebx]
jne 0x402149
pop edi
mov eax, dword [ebp - 8]
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x403d5a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x403d65
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x403e19
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41b8b0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41b8b0]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41b8b0]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41b8b0]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41b8b0]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41b8b0]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41b8b0]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41b8b0]
add ecx, 8
sub edi, 8
dec esi
jne 0x403d7c
pop ebx
test edi, edi
je 0x403e32
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x41b8b0]
inc ecx
dec edi
jne 0x403e1d
pop esi
not eax
pop edi
ret

Function at 0x403e37
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x41b8b0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41b8b0]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x404554
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x404584
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40457f
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4045ac
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x404595
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004092d0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x4052c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x40533b
cmp dword [esi + 4], 0xffffffff
jne 0x40533b
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00409df3
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x40530b
cmp eax, 0x2f
je 0x40530b
push 0x41bea8
push edi
call fcn.00409631
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00404449
pop ecx
pop ecx
test eax, eax
jne 0x405322
mov eax, dword [ebp + 8]
jmp 0x405340
push eax
call fcn.004047cd
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x405340
mov eax, 0x1000000
pop edi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x40598e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40598e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x405a38
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x4059aa
cmp cx, 0x5c
jne 0x4059ac
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x40599e
cmp eax, esi
je 0x4059ec
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004092d0
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.0040595a
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x405a08
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00409662
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409631
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405a38
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409256
leave
ret
Function at 0x4062b2
Capabilities:
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, esi
je 0x40636f
lea eax, [ebp - 0x4e4]
push eax
push edi
mov dword [ebp - 0x4e4], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40636b
push 0x101
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push esi
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x406325
lea eax, [ebp + 8]
lea ecx, [ebp - 0x4c0]
push ecx
push eax
call fcn.0040b0d2
pop ecx
pop ecx
test eax, eax
jne 0x40635d
push dword [ebp - 0x4dc]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
je 0x40635d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
lea eax, [ebp - 0x4e4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4062fa
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.00401a97
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00409256
leave
ret
Function at 0x40687e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.004147f0
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push 2
lea eax, [ebp - 0xc]
push esi
push eax
xor ebx, ebx
call fcn.00409da7
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40699d
push 4
lea eax, [ebp - 0x200c]
push eax
push str.___
call fcn.0040b4d3
add esp, 0xc
test eax, eax
jne 0x40690a
lea eax, [ebp - 0x2004]
push eax
push edi
call fcn.00409662
add esi, 4
push esi
push edi
call fcn.00409631
xor eax, eax
add esp, 0x10
inc eax
jmp 0x40699f
push 0x19
lea eax, [ebp - 0x200c]
push eax
mov ebx, str.DeviceLanmanRedirector_
push ebx
call fcn.0040b4d3
add esp, 0xc
test eax, eax
jne 0x40697a
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x400d]
push eax
lea eax, [ebp - 0x200c]
push str.DeviceLanmanRedirector__c:_d_s
push eax
call fcn.0040b3cc
add esp, 0x14
cmp eax, 3
je 0x406957
xor eax, eax
jmp 0x40699f
lea eax, [ebp - 0x200c]
push ebx
push eax
call fcn.00409662
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x200c]
push eax
call fcn.00409631
add esp, 0x10
add esi, 4
lea eax, [ebp - 0x200c]
push esi
push eax
call fcn.00409631
lea eax, [ebp - 0x200c]
push eax
push edi
call fcn.00409662
xor ebx, ebx
add esp, 0x10
inc ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409256
leave
ret