joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4619cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bcbe4]
cmp dword [eax + 0x30], 0
je 0x461a76
cmp dword [ebx + 0x94], 0
jne 0x461a70
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46195c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461a70
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x461a36
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461a70
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419ed0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461a45
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4625d8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46260d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404720
jmp 0x46261a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404684
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46367c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4636bd
mov eax, esi
call fcn.00449d24
test al, al
je 0x4636bd
mov eax, dword [ebx + 0x84]
call fcn.00449a20
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4636bd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449a20
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46437c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416da0]
call fcn.00405010
xor eax, eax
push ebp
push 0x4644c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b8f74], 0
jne 0x4643cf
mov ecx, dword [0x4ba918]
mov dl, 1
mov eax, dword [0x407ae0]
call fcn.0040cee8
call fcn.00403fc8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004030a4
mov eax, ebx
call fcn.00404ec0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4644d0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004060a8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404ed0
test eax, eax
jle 0x464467
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x464460
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004048b8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004048a0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408a64
test eax, eax
jne 0x464460
mov ebx, 0x15
jmp 0x46446c
mov ebx, 0x10
jmp 0x46446c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4b8f74]
call fcn.004642d4
mov eax, dword [ebp - 8]
call fcn.004642d4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004060c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4644c7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404654
lea eax, [ebp - 0x10]
mov edx, dword [0x416da0]
call fcn.004050e0
ret
Function at 0x478710
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x478718
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4788e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x478900
mov eax, esi
call fcn.004762f8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404684
lea ecx, [ebp - 0x10]
mov edx, 0x478914
mov eax, esi
call fcn.004762f8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404684
lea ecx, [ebp - 0x14]
mov edx, 0x47892c
mov eax, esi
call fcn.004762f8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404684
lea ecx, [ebp - 0x18]
mov edx, 0x478948
mov eax, esi
call fcn.004762f8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404684
lea ecx, [ebp - 0x1c]
mov edx, 0x478964
mov eax, esi
call fcn.004762f8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404684
lea ecx, [ebp - 0x24]
mov edx, 0x47897c
mov eax, esi
call fcn.004762f8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408ad4
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040901c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x478994
mov eax, esi
call fcn.004762f8
mov eax, dword [ebp - 0x28]
call fcn.0046fdd0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4789a4
mov eax, esi
call fcn.004762f8
mov eax, dword [ebp - 0x2c]
call fcn.0046fdd0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4789bc
mov eax, esi
call fcn.004762f8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040901c
inc eax
je 0x4788aa
lea ecx, [ebp - 0x34]
mov edx, 0x4789bc
mov eax, esi
call fcn.004762f8
mov eax, dword [ebp - 0x34]
call fcn.00408fe0
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a588
fstp qword [ebp - 0x3c]
wait
call fcn.0040a8ec
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x40]
mov edx, 0x4789cc
mov eax, esi
call fcn.004762f8
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x48]
call fcn.00404684
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4788ee
lea eax, [ebp - 0x40]
call fcn.00404630
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404654
ret
Function at 0x47f828
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47f882
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0047f818
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0046e940
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0046e540
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f889
lea eax, [ebp - 4]
call fcn.00404630
ret

Function at 0x485f7c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x485faa
mov eax, ebx
call fcn.00486a30
cmp dword [ebx + 0x40], 0
je 0x485fa3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x48601b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x48600d
cmp dword [ebx + 8], 0
je 0x485fcc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x485fde
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x48600d
cmp dword [ebx + 8], 0
je 0x485fbf
cmp eax, 3
je 0x485ff1
dec eax
jne 0x485fbf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x485fbf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x485fbf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x486039
cmp dword [ebx + 0x14], 0xcc
je 0x486039
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00486044
pop ebx
ret

Function at 0x49850c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x49855d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x498544
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x498534
jmp 0x49855d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x498545
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5a2c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.0041a294
mov esi, eax
xor eax, eax
push ebp
push 0x4a5aa6
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x4a5a8a
mov edx, ebx
mov eax, esi
call fcn.00419ed0
test byte [eax + 0x58], 1
je 0x4a5a84
push 0
mov edx, ebx
mov eax, esi
call fcn.00419ed0
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov edx, ebx
mov eax, esi
call fcn.00419dc0
dec ebx
cmp ebx, 0xffffffff
jne 0x4a5a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5aad
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.0041a2f8
ret

Function at 0x4a60b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
test edx, edx
je 0x4a60d5
cmp dword [ebp - 4], 0
je 0x4a60d5
test eax, eax
ja 0x4a60d9
xor eax, eax
jmp 0x4a611f
mov esi, 0x11cfd
dec eax
test eax, eax
jb 0x4a611d
inc eax
xor edi, edi
mov cl, byte [edx + edi]
mov ebx, esi
shr ebx, 8
xor cl, bl
mov byte [ebp - 5], cl
xor ecx, ecx
mov cl, byte [edx + edi]
mov ebx, esi
shr ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 4]
mov byte [ebx + edi], cl
movsx ecx, byte [ebp - 5]
add esi, ecx
imul ecx, esi, 0xce6d
add ecx, 0x58bf
mov esi, ecx
inc edi
dec eax
jne 0x4a60e6
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4a6128
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
test edx, edx
je 0x4a6144
cmp dword [ebp - 4], 0
je 0x4a6144
test eax, eax
ja 0x4a6148
xor eax, eax
jmp 0x4a6187
mov esi, 0x11cfd
dec eax
test eax, eax
jb 0x4a6185
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov cl, byte [edx + eax]
mov byte [ebp - 5], cl
mov ebx, esi
shr ebx, 8
xor bl, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], bl
movsx ecx, byte [ebp - 5]
add esi, ecx
imul ecx, esi, 0xce6d
add ecx, 0x58bf
mov esi, ecx
inc eax
dec dword [ebp - 0xc]
jne 0x4a6158
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a629c
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a6327
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x1400
mov eax, dword [ebp - 4]
call fcn.0040278c
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4a62e4
push eax
call sub.kernel32.dll_SetLastError
call fcn.0040e834
mov ebx, edi
lea ecx, [ebp - 8]
lea eax, [ebx + 0x194]
mov edx, dword [ebx + 0x190]
call fcn.004a6208
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004048f8
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4a62e6
mov eax, edi
call fcn.004027ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a632e
lea eax, [ebp - 8]
call fcn.00404630
ret
Function at 0x4a6c30
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004074e4
ret
Function at 0x61cd23
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
xor ecx, ecx
lea ebx, [ebp]
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
add ecx, 8
cmp ecx, 0x100
jl 0x61cd28
xor ecx, ecx
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], cl
inc cx
cmp cx, 0x100
jl 0x61cd65
xor ecx, ecx
xor edx, edx
and edx, 0xff
mov ebx, edx
add ebx, ebp
add dl, byte [ebx + 0x200]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
add dl, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov ah, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], ah
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov byte [ebx], al
inc cx
cmp cx, 0x100
jl 0x61cd7e
xor edi, edi
add cl, 1
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
add dl, byte [ebx]
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov ah, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], ah
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov byte [ebx], al
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
add al, byte [ebx]
and eax, 0xff
mov ebx, eax
add ebx, ebp
mov ch, byte [ebx]
xor ch, byte [esi + edi]
mov byte [esi + edi], ch
inc edi
cmp edi, dword [ebp + 0x108]
jne 0x61cdd5
ret
Function at 0x405cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004061a0
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e79
test edi, edi
je 0x405e79
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405db9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405d94
cmp edi, 0xffffffff
je 0x405d55
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d55
mov byte [esp], 0
jmp 0x405e79
cmp dword [esi], 1
jg 0x405d94
cmp dword [esi], 0
jne 0x405d86
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405d86
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e79
lea eax, [esp + 0xc]
call fcn.004059ac
dec ebp
test ebp, ebp
jg 0x405d3a
cmp edi, 0xffffffff
je 0x405db9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405db7
mov byte [esp], 0
jmp 0x405e79
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405cfe
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405db9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405ef4
mov edx, eax
mov ebx, dword [0x42c0a8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405e1d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405e1b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405e1d
xor edi, edi
cmp byte [esp], 0
je 0x405e43
mov ebx, dword [esi]
test bl, 1
jne 0x405e59
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405e23
mov byte [esp + 1], 1
jmp 0x405e59
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405e43
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405dd0
cmp byte [esp], 0
je 0x405e79
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406784
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42b808], 0
je 0x4067eb
cmp word [0x42baf4], 0xd7b2
jne 0x4067ad
cmp dword [0x42bafc], 0
jbe 0x4067ad
mov eax, 0x42baf0
call dword [0x42bb0c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406818
call fcn.00406ba8
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4272b4], 0
jne 0x406807
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x408760
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x412874
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov byte [ebp - 5], al
mov al, byte [edx]
mov bl, al
xor bl, byte [ebp + 0xc]
lock cmpxchg byte [edx], bl
jne 0x412889
mov byte [ebp + 0xc], al
mov al, byte [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
movzx eax, al
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x412e04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov word [ebp - 6], ax
mov ax, word [edx]
mov bx, ax
xor bx, word [ebp + 0xc]
lock cmpxchg word [edx], bx
jne 0x412e1c
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
movzx eax, ax
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x413364
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
lock cmpxchg dword [edx], ebx
jne 0x413379
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x414624
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, edx
mov ebx, eax
xor ebx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lock cmpxchg8b qword [edi]
jne 0x41464d
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x415f94
Capabilities:
Read file via mapping

Disassembly:
push edi
push esi
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4297d6], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4297d5], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4297d4], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4297d3], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4297d2], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4297d1], cl
mov ecx, eax
shr ecx, 0x18
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4297d0], cl
shr eax, 0x1c
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [0x4297cf], al
sub esp, 4
push str.LocalFastMM_PID________
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
add esp, 4
mov esi, eax
test esi, esi
je 0x416077
sub esp, 0xc
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov edi, dword [eax]
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
jmp 0x416079
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
ret

Function at 0x416084
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
xor eax, eax
cmp dword [0x42906c], 0x41695a
jne 0x4160e8
cmp dword [0x429070], fcn.00416cde
jne 0x4160e8
cmp dword [0x429074], fcn.00416ed6
jne 0x4160e8
cmp dword [0x429078], fcn.004171f0
jne 0x4160e8
cmp dword [0x42907c], 0x415004
jne 0x4160e8
cmp dword [0x429080], 0x415014
jne 0x4160e8
mov ecx, dword [0x42f458]
test ecx, ecx
jne 0x4160e8
call fcn.00415f94
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x4160ec
add esp, 0xc
ret
sub esp, 8
push str.LocalFastMM_PID________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
add esp, 8
mov dword [0x42f458], eax
sub esp, 0xc
push 0
push 0
push 0
push 2
push eax
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov dword [eax], fcn.0041695a
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
add esp, 0xc
mov eax, 1
add esp, 0xc
ret

Function at 0x4182bc
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x429ccc], eax
jbe 0x4182f9
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x4316fc]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x418300
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x418316
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x418312
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.00418fb0
add esp, 0x10
add esp, 0xc
ret
Function at 0x418334
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x429ccc], eax
jbe 0x418371
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x4316fc]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x418382
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.00418fb0
add esp, 0x10
add esp, 0xc
ret
call fcn.00419050
add esp, 0xc
ret

Function at 0x419ba0
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x419bbd
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.00419050