joyce8/EMBER2024-capa huggingface dataset:
Function at 0x652eb60c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.652ed0e8
xor esi, esi
inc esi
cmp dword [0x652fbbbc], esi
pop ecx
jne 0x652eb634
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x652fbbb8], esi
mov byte [0x652fbbb4], al
jne 0x652eb69a
mov ecx, dword [0x652fd38c]
test ecx, ecx
je 0x652eb67b
mov eax, dword [0x652fd388]
sub eax, 4
cmp eax, ecx
jmp 0x652eb674
mov eax, dword [eax]
test eax, eax
je 0x652eb666
call eax
mov eax, dword [0x652fd388]
sub eax, 4
cmp eax, dword [0x652fd38c]
mov dword [0x652fd388], eax
jae 0x652eb65e
mov eax, 0x652f9028
mov esi, 0x652f9030
cmp eax, esi
mov edi, eax
jae 0x652eb69a
mov eax, dword [edi]
test eax, eax
je 0x652eb693
call eax
add edi, 4
cmp edi, esi
jb 0x652eb68b
mov eax, 0x652f9034
mov esi, 0x652f9038
cmp eax, esi
mov edi, eax
jae 0x652eb6b9
mov eax, dword [edi]
test eax, eax
je 0x652eb6b2
call eax
add edi, 4
cmp edi, esi
jb 0x652eb6aa
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x652eb6ca
push 8
call fcn.652ed054
jmp 0x652eb6dc
push dword [ebp + 8]
mov dword [0x652fbbbc], 1
call fcn.652eb565
pop ecx
pop ebp
ret

Function at 0x652eb914
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x652eb934
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.652eb867
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x652eb957
test byte [esp + 8], 2
je 0x652eb957
call fcn.652eb855
mov dword [eax], 0xd
call fcn.652eb85e
mov dword [eax], 5
jmp 0x652eb930
xor eax, eax
ret
Function at 0x652ebc50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x652fa990]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x652ebc79
xor eax, eax
jmp 0x652ebde7
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x652fd020]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x652ebcac
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.652eba78
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x652ebd7e
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x652ebdb9
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x652ebd07
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x652ebcf8
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x652ebcdb
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x652ebd47
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x652ebd50
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x652ebccc
jmp 0x652ebd52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x652ebde2
cmp dword [ebp - 8], edi
je 0x652ebdb9
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x652ebdab
call fcn.652eb855
mov dword [eax], 9
call fcn.652eb85e
mov dword [eax], esi
jmp 0x652ebdb4
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x652ebda0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x652ebd52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x652ebd52
push dword [ebp - 8]
call fcn.652eb867
pop ecx
or eax, 0xffffffff
jmp 0x652ebde5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x652ebdce
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x652ebdce
xor eax, eax
jmp 0x652ebde5
call fcn.652eb855
mov dword [eax], 0x1c
call fcn.652eb85e
mov dword [eax], edi
jmp 0x652ebdb4
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.652efc26
leave
ret
Function at 0x652eedd3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x652fa990]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x652fa860]
je 0x652eee00
inc eax
cmp eax, 0x12
jb 0x652eedf1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x652fa860]
jne 0x652eef34
mov eax, dword [0x652fbb68]
cmp eax, 1
je 0x652eef0f
cmp eax, edx
jne 0x652eee30
cmp dword [0x652fbb6c], 1
je 0x652eef0f
cmp ecx, 0xfc
je 0x652eef34
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x652eee69
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.652ef9c0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.652efac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x652eeeab
lea eax, [ebp - 0x10c]
push eax
call fcn.652efac0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x652f74b0
push edi
call fcn.652ea7e0
add esp, 0x10
push edi
call fcn.652efac0
push dword [esi + str._t_e_b]
mov ebx, eax
call fcn.652efac0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.652eed90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.652ef9c0
push edi
push ebx
call fcn.652ef9d0
push 0x652f7490
push ebx
call fcn.652ef9d0
push dword [esi + str._t_e_b]
push ebx
call fcn.652ef9d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.652f105e
add esp, 0x2c
jmp 0x652eef34
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + str._t_e_b]
push dword [esi]
call fcn.652efac0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.652efc26
pop edi
pop esi
pop ebx
leave
ret
Function at 0x652f0f30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.652eed90
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x652f0fc5
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x652fbb7c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x652f0fc5
cmp eax, 1
je 0x652f0fdd
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x652f0fc5
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x652f0f9a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x652f0fc1
xor eax, eax
inc eax
jmp 0x652f0ff9
cmp esi, ebx
jae 0x652f0fc9
xor eax, eax
jmp 0x652f0ff9
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x652fbb7c]
jmp 0x652f0fdf
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x652f105e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x652fbecc], ebx
push esi
push edi
jne 0x652f10de
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x652f1119
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x652f7b3c
push edi
call esi
test eax, eax
mov dword [0x652fbecc], eax
je 0x652f1119
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x652fbed0], eax
call esi
cmp dword [0x652fbb7c], 2
mov dword [0x652fbed4], eax
jne 0x652f10de
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x652fbedc], eax
je 0x652f10de
push 0x652f7ae4
push edi
call esi
mov dword [0x652fbed8], eax
mov eax, dword [0x652fbed8]
test eax, eax
je 0x652f1123
call eax
test eax, eax
je 0x652f110a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x652fbedc]
test eax, eax
je 0x652f110a
test byte [ebp - 8], 1
jne 0x652f1123
cmp dword [0x652fbb88], 4
jb 0x652f111d
or byte [ebp + 0x12], 0x20
jmp 0x652f1142
xor eax, eax
jmp 0x652f1152
or byte [ebp + 0x12], 4
jmp 0x652f1142
mov eax, dword [0x652fbed0]
test eax, eax
je 0x652f1142
call eax
mov ebx, eax
test ebx, ebx
je 0x652f1142
mov eax, dword [0x652fbed4]
test eax, eax
je 0x652f1142
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x652fbecc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x652f184c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x652fa990]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x652f18c7
push ebx
call fcn.652f1815
test eax, eax
pop ecx
jne 0x652f1899
call fcn.652eb85e
mov dword [eax], 0xf
call fcn.652eb855
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.652efc26
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x652f18d9
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x652f1889
inc eax
cmp eax, 0x104
ja 0x652f1889
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x652f1911
cmp eax, dword [ebp + 0x10]
jg 0x652f18f4
mov eax, dword [ebp + 0x10]
push eax
call fcn.652ea9ab
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x652f1926
call fcn.652eb855
mov dword [eax], 0xc
jmp 0x652f1889
cmp eax, dword [ebp + 0x10]
jle 0x652f1926
call fcn.652eb855
mov dword [eax], 0x22
jmp 0x652f1889
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.652ef9c0
pop ecx
pop ecx
jmp 0x652f188b
Function at 0x652f1f74
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x652f1fdf
push 0x3d
push dword [ebp + 8]
call fcn.652f2c08
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x652f1fdf
cmp dword [ebp + 8], esi
je 0x652f1fdf
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x652fbb9c]
cmp eax, dword [0x652fbba0]
jne 0x652f1fc5
mov edi, eax
call fcn.652f1f13
mov dword [0x652fbb9c], eax
cmp eax, ebx
jne 0x652f201e
cmp dword [ebp + 0xc], ebx
je 0x652f1fe7
cmp dword [0x652fbba4], ebx
je 0x652f1fe7
call fcn.652efc82
test eax, eax
je 0x652f201e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x652f2122
push 4
call fcn.652ea9ab
cmp eax, ebx
pop ecx
mov dword [0x652fbb9c], eax
je 0x652f1fdf
mov dword [eax], ebx
cmp dword [0x652fbba4], ebx
jne 0x652f201e
push 4
call fcn.652ea9ab
cmp eax, ebx
pop ecx
mov dword [0x652fbba4], eax
je 0x652f1fdf
mov dword [eax], ebx
mov ebx, dword [0x652fbb9c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.652f1ec6
mov edi, eax
test edi, edi
pop ecx
jl 0x652f2077
cmp dword [ebx], 0
je 0x652f2077
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.652ea18b
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x652f205f
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x652f20ad
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x652f2056
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.652ea9bd
test eax, eax
pop ecx
pop ecx
je 0x652f20ad
jmp 0x652f20a8
cmp dword [ebp - 4], 0
jne 0x652f211b
test edi, edi
jge 0x652f2087
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.652ea9bd
test eax, eax
pop ecx
pop ecx
je 0x652f1fdf
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x652fbb9c], eax
cmp dword [ebp + 0xc], 0
je 0x652f2104
push dword [ebp + 8]
call fcn.652efac0
inc eax
inc eax
push eax
call fcn.652ea9ab
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x652f2104
push dword [ebp + 8]
push esi
call fcn.652ef9c0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x652f20fd
or dword [ebp - 8], 0xffffffff
push esi
call fcn.652ea18b
pop ecx
cmp dword [ebp - 4], 0
je 0x652f2113
push dword [ebp + 8]
call fcn.652ea18b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x652f1fe2
push esi
call fcn.652ea18b
pop ecx
xor eax, eax
jmp 0x652f1fe2
Function at 0x10001cf0
Capabilities:
Inspect section memory permissions

Disassembly:
add eax, esi
cmp dword [eax], ebx
je 0x10001d49
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10001d44
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10001d2e
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10001d36
cmp edx, ebx
jne 0x10001e84
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10001d05
add eax, dword [eax + 4]
jmp 0x10001cf2
mov dword [ebp + 0xc], ebx
jmp 0x10001d54
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10001d6c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10001d8a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10001de8
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10001dcf
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10001dd8
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10001de2
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10001dc4
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10001d4e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10001e35
dec eax
je 0x10001e2c
sub eax, 3
je 0x10001e23
mov dword [ebp - 4], 0x40
jmp 0x10001e52
mov dword [ebp - 4], 4
jmp 0x10001e38
mov dword [ebp - 4], 0x20
jmp 0x10001e38
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10001e84
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10001e04
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10001695
pop es
jo 0x10001eb2
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x10001e90
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cld
invalid
Function at 0x1000469a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10009034]
jne 0x100046a4
repz ret
jmp fcn.10004b57
Function at 0x401848
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx edx, word [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
xor ebx, ebx
mov esi, esi
mov eax, edx
xor ecx, ecx
and eax, 1
test al, al
je 0x401874
nop
lea esi, [esi]
shr edx, 1
inc ecx
mov eax, edx
and eax, 1
test al, al
jne 0x401868
mov dword [esi + ebx*4], ecx
inc ebx
test edx, edx
je 0x40189b
mov al, dl
xor ecx, ecx
xor al, 1
and al, 1
test al, al
je 0x401895
shr edx, 1
inc ecx
mov al, dl
xor al, 1
and al, 1
test al, al
jne 0x401888
mov dword [esi + ebx*4], ecx
inc ebx
jmp 0x401858
mov edx, 0x10
sub edx, ecx
mov dword [esi + ebx*4], edx
inc ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x4137a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x413800
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4987e0]
test esi, esi
jle 0x4138ed
mov edi, dword [0x4987e4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x413834
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4138e6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x413820
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x41392a
lea ebx, [esi + esi*2]
mov esi, dword [0x4987e4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4987e4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x41390a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4138df
sub eax, 0x40
and eax, 0xffffffbf
je 0x4138df
mov eax, dword [esp + 0x20]
add ebx, dword [0x4987e4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4138f4
add dword [0x4987e0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x41383e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4987e4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x413df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x498b88
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x498b80]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x413e45
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x413e3e
test esi, esi
je 0x413e3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x413e20
mov dword [esp], 0x498b88
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x414060
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x414098
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x41408e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41409a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x414080
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4154d0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.00414370
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x4155bf
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x415663
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x4155fa
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x4155f2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x415660
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x41567a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x415634
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x415634
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x415634
Function at 0x422190
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4995d0]
test ebx, ebx
je 0x4221c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4995d0]
test eax, eax
je 0x4221e5
cmp dword [eax], 0xffffffff
je 0x422208
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov ebx, eax
mov dword [0x4995d0], eax
jmp 0x42219e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x4221af
call sym._abort
lea esi, [esi]