joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cadc4
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00404dcc
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4cae7e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x4cae88]
fnstsw ax
sahf
je 0x4cae28
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.004cad70
fld qword [ebp + 8]
fcomp dword [0x4cae88]
fnstsw ax
sahf
je 0x4cae44
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.004cad70
fld qword [ebp + 0x10]
fcomp dword [0x4cae88]
fnstsw ax
sahf
je 0x4cae60
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.004cad70
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4caec8
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00404dcc
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4caf23
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, dword [esp + 8]
call fcn.004cae8c
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret

Function at 0x4caf30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x4cafb3
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4cafb3
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x4cafb3
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x4cafb3
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x4cafb3
xor edx, edx
push ebp
push 0x4cafa9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.00423058
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cafb3
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4cb0b0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
test byte [esp], 1
je 0x4cb0c3
add ebx, 0x20
test byte [esp], 2
je 0x4cb0cc
add ebx, 2
test byte [esp], 4
je 0x4cb0d3
inc ebx
test byte [esp], 8
je 0x4cb0dc
add ebx, 4
test byte [esp], 0x10
je 0x4cb0e8
add ebx, 0x100
test byte [esp], 0x20
je 0x4cb0f4
add ebx, 0x1000
push ebx
mov eax, esi
call fcn.00404dcc
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
pop edx
pop esi
pop ebx
ret

Function at 0x4cc038
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dbc
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x4cc1bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4cc1dc
call fcn.00404f10
test eax, eax
jne 0x4cc083
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4cc1e8
call fcn.00404c18
mov eax, esi
mov edx, 0x3c
call fcn.004cafe8
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.00402a40
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.00402a40
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.00402a40
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.00402a40
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.00402a40
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.00402a40
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404bcc
push eax
mov eax, dword [ebp - 4]
call fcn.00404dcc
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4cc179
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00404b04
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00404b04
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00404b04
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00404b04
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00404b04
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00404b04
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.00402a60
mov eax, dword [esi + 0x2c]
call fcn.00402a60
mov eax, dword [esi + 0x24]
call fcn.00402a60
mov eax, dword [esi + 0x1c]
call fcn.00402a60
mov eax, dword [esi + 0x10]
call fcn.00402a60
mov eax, dword [esi + 4]
call fcn.00402a60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc1c6
lea eax, [ebp - 4]
call fcn.0040490c
ret
Function at 0x4cc3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x4cc3f9
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x4cc406
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4cc424
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cc448
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4cc48f
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.00404b70
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.00404b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc7f0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x4cc80d
add esp, 0xfffffff0
call fcn.00403e5c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4cc90c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x4cc85a
mov eax, esi
call fcn.00404dcc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 2
cmp eax, 2
je 0x4cc84b
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x4cc85a
push 0x20
mov eax, esi
call fcn.00404dcc
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x4d7e80]
push eax
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404dcc
push eax
call sub.kernel32.dll_CreateFileA_1
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.004231e4
cmp dword [ebx + 4], 0
jge 0x4cc8dd
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.0040c828
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x1c]
call fcn.0040f2a8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x4d8bfc]
mov dl, 1
mov eax, dword [0x41e84c]
call fcn.0040fbb4
call fcn.004042c4
cmp byte [ebp + 8], 0
je 0x4cc8f1
push edi
mov eax, esi
call fcn.00404dcc
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc913
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404930
ret
Function at 0x4cd1ac
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4cd2c9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004cd074
pop ecx
test al, al
je 0x4cd2a4
mov eax, dword [ebp + 8]
push eax
call fcn.004cceb8
pop ecx
test al, al
jne 0x4cd2a4
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x140]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4cd2a4
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.004ccef8
pop ecx
test al, al
je 0x4cd2a4
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404b7c
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040c1fc
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x188], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x188]
cmp esi, 0xc8
je 0x4cd26f
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x4cd2a4
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.004ccef8
pop ecx
test al, al
je 0x4cd2a4
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404b7c
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040c1fc
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.004cceb8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd2d0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404930
ret
Function at 0x4d2598
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d26ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x4dc3b0]
call fcn.00404dcc
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4d265f
mov dl, 1
mov eax, dword [0x41f3f4]
call fcn.00403b08
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d264f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x4d26f8
mov edx, 0x4d26f8
mov eax, dword [0x4d9668]
call fcn.004caf30
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2656
mov eax, dword [ebp - 0x10]
call fcn.00403b38
ret
push 1
push dword [0x4dc3b0]
push 0x4d2708
lea edx, [ebp - 0x1c]
mov eax, dword [0x4d88f8]
mov eax, dword [eax]
call fcn.00471afc
push dword [ebp - 0x1c]
push 0x4d2714
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404c8c
mov eax, dword [ebp - 0x18]
call fcn.00404dcc
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x264], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1fa], 0
je 0x4d26cc
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1fc]
call dword [ebx + 0x1f8]
jmp 0x4d26d1
call fcn.004cafc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d26f3
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404930
ret

Function at 0x4d27bc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
xor eax, eax
push ebp
push 0x4d28a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [0x4d88f8]
mov eax, dword [eax]
call fcn.00471afc
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.0040c774
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.004107a4
lea eax, [ebp - 0x144]
mov edx, 0x4d28bc
call fcn.00404bd4
mov eax, dword [ebp - 0x144]
call fcn.00404dcc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d2889
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404b7c
mov eax, dword [ebp - 0x150]
call fcn.0040c6dc
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4d2851
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d28ae
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.00404930
ret
Function at 0x4d388c
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
xor edx, edx
mov eax, dword [ebx + 0x304]
call fcn.0043a06c
xor edx, edx
mov eax, dword [ebx + 0x334]
call fcn.0043a06c
xor edx, edx
mov eax, dword [ebx + 0x33c]
call fcn.0043a06c
cmp byte [0x4d7f30], 0
jne 0x4d38da
mov byte [0x4d7f30], 1
mov eax, dword [0x4dc3c0]
mov eax, dword [eax + 4]
test eax, eax
je 0x4d38da
push 0
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [ebx + 0x310]
mov eax, dword [eax + 0x34]
mov edx, 1
call fcn.004637f4
mov dl, 1
call fcn.00463710
mov eax, dword [ebx + 0x310]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.004637f4
xor edx, edx
call fcn.00463710
xor edx, edx
mov eax, dword [ebx + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x64]
pop ebx
ret

Function at 0x4d3928
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
push 1
mov eax, dword [0x4d8ad0]
mov eax, dword [eax]
call fcn.00404dcc
push eax
call sub.kernel32.dll_WinExec
mov eax, 0x64
call fcn.0047d0d4
mov eax, dword [0x4d8b8c]
mov eax, dword [eax]
call fcn.00404dcc
push eax
push 0x4d39f0
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x4d397d
push 6
push esi
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x10
push esi
call sub.user32.dll_SendMessageA
jmp 0x4d398a
mov eax, 0x4d3a08
call fcn.0047ccf8
pop esi
pop ebx
ret
mov eax, dword [0x4dc3bc]
call fcn.0046dfdc
mov eax, dword [ebx + 0x310]
mov eax, dword [eax + 0x34]
mov edx, 1
call fcn.004637f4
xor edx, edx
call fcn.00463710
mov eax, dword [ebx + 0x310]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.004637f4
mov dl, 1
call fcn.00463710
xor edx, edx
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x304]
call fcn.0043a06c
pop esi
pop ebx
ret
Function at 0x4d3f40
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, ecx
mov ebx, edx
push 1
push ebx
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.0047cc6c
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call sub.user32.dll_SetWindowPos
push esp
push ebx
call sub.user32.dll_GetWindowRect
mov eax, dword [esp + 4]
add eax, 0x78
push eax
mov eax, dword [esp + 4]
add eax, 0x1e
push eax
call sub.user32.dll_SetCursorPos
push 0
push 0
push 0
push 0
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 4
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 4
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 4
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0x11
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push 0x43
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x43
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x11
call sub.user32.dll_keybd_event
mov eax, 0x1f4
call fcn.0047d0d4
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
call fcn.0043ba68
mov edx, esi
call fcn.0043b688
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x4d4080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4d4089
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dbc
xor eax, eax
push ebp
push 0x4d4164
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4d8a18]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.00403114
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00403550
call fcn.00402c9c
test eax, eax
jne 0x4d4141
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.00403264
mov dx, word [ebp - 8]
test dx, dx
jbe 0x4d413b
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x4d7f34]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x4d4117
cmp dword [ebp - 8], 0
jne 0x4d40ee
lea eax, [ebp - 0x154]
call fcn.00403284
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d416b
lea eax, [ebp - 4]
call fcn.0040490c
ret
Function at 0x401050
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push section..data
call fcn.00401260
add esp, 8
mov dword [ebp - 0x2c], str.gibrish.bin
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
push str.myFile
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4010e3
push str.Could_not_create_file_mapping_object___d_._n
call fcn.00401260
add esp, 4
mov eax, 1
jmp 0x401212
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 0x41b044
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
cmp dword [ebp - 0xc], ecx
ja 0x40119d
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
push 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40114a
push str.Could_not_map_view_of_file___d_._n
call fcn.00401260
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x401212
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call section..text
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x41b06c
call fcn.00401260
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x4010fb
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
push 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call section..text
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push 0x41b070
call fcn.00401260
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x186a0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401969
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019a8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019a8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019a8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019a8
cmp dword [ecx + 0x74], 0xe
jbe 0x4019a8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407ae6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415608
push 0x415600
push str.FlsAlloc
push 0x1f
call fcn.004079a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407b1a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41412c]
call esi
jmp 0x407b20
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407b64
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415618
push 0x415610
push str.FlsGetValue
push 0x21
call fcn.004079a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407b9b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41412c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407ba3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415620
push 0x415618
push str.FlsSetValue
push 0x22
call fcn.004079a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407bdd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41412c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b128
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b1c5
push ebx
push esi
call fcn.0040b0f1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b085
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b172
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b1c4
push edi
push eax
call fcn.00408295
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b192
call fcn.00407838
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b1c3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b085
add esp, 0x20
test eax, eax
jne 0x40b1b1
push edi
call fcn.00407838
jmp 0x40b1b9
push ebx
call fcn.00407838
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret