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

Disassembly:
cmp ecx, dword [0x76ff6c]
jne 0x40b2c4
repz ret
jmp fcn.0040ef62

Function at 0x4117cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040cf3d
and dword [ebp - 4], 0
cmp dword [0x7718f8], 0
mov ebx, eax
jne 0x41187d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41192e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41192e
push eax
call fcn.0040cecb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x7718f8], eax
call esi
push eax
call fcn.0040cecb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x7718fc], eax
call esi
push eax
call fcn.0040cecb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x771900], eax
call esi
push eax
call fcn.0040cecb
pop ecx
mov dword [0x771908], eax
test eax, eax
je 0x41187d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040cecb
pop ecx
mov dword [0x771904], eax
mov eax, dword [0x771904]
cmp eax, ebx
je 0x4118d5
cmp dword [0x771908], ebx
je 0x4118d5
push eax
call fcn.0040cf46
push dword [0x771908]
mov esi, eax
call fcn.0040cf46
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4118d5
test edi, edi
je 0x4118d5
call esi
test eax, eax
je 0x4118cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4118cc
test byte [ebp - 0xc], 1
jne 0x4118d5
or dword [ebp + 0x10], 0x200000
jmp 0x41190e
mov eax, dword [0x7718fc]
cmp eax, ebx
je 0x41190e
push eax
call fcn.0040cf46
pop ecx
test eax, eax
je 0x41190e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41190e
mov eax, dword [0x771900]
cmp eax, ebx
je 0x41190e
push eax
call fcn.0040cf46
pop ecx
test eax, eax
je 0x41190e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x7718f8]
call fcn.0040cf46
pop ecx
test eax, eax
je 0x41192e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411930
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b3d8
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x1000b63b
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x1000b3f1
cmp dword [eax + 0xc], ebx
je 0x1000b494
mov edi, dword [eax + 0xc]
add edi, esi
push edi
invalid
Function at 0x5e8c2b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e8c46
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ade6b]
pop edx
test eax, eax
je 0x5e8d18
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e8d07
test dword [ebp - 0x2a8], 1
jne 0x5e8d07
and dword [ebp - 0x2a8], 0x100
jne 0x5e8d07
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2ab8]
pop edx
pop esi
test eax, eax
je 0x5e8caa
jmp 0x5e8d07
cmp word [esi], 0x5a4d
jne 0x5e8d07
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e8d07
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2b44]
pop edx
test eax, eax
je 0x5e8d07
lea eax, [ebp - 0x28c]
push eax
call fcn.005e8b87
test eax, eax
jne 0x5e8d00
jmp 0x5e8d07
mov eax, esi
jmp 0x5e8d18
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e8c46
pop esi
leave
ret 4
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x605ae8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x605ae4]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.0041db04
jmp 0x4011d3
mov eax, dword [0x605ae4]
test eax, eax
jne 0x4011c9
mov dword [0x605ae4], 1
mov dword [esp + 4], 0x608014
mov dword [esp], 0x60800c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x60501c], 1
mov eax, dword [0x605ae4]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x608008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x605ae4], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x605ae8
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.0040e871
mov dword [esp], 0x40e98c
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x605074], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.0040e210
mov eax, dword [0x605004]
mov dword [esp + 4], 0x605008
mov dword [esp], eax
call fcn.004013c8
call fcn.0040e04c
mov eax, dword [0x4c7310]
mov edx, dword [0x60500c]
mov dword [eax], edx
mov ecx, dword [0x60500c]
mov edx, dword [0x605008]
mov eax, dword [0x605004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004bddd0
mov dword [0x605014], eax
mov eax, dword [0x605018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x605014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x60501c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x605014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x60504c], 1
mov dword [0x605050], 1
mov dword [0x605054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x4016a5
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov eax, 0x114c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0040f1c8
sub esp, eax
lea eax, [ebp - 0x1138]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 4], 0x1000
mov dword [esp], eax
call sub.PSAPI.DLL_EnumProcesses
sub esp, 0xc
test eax, eax
jne 0x4016e5
xor eax, eax
jmp 0x4017e8
mov eax, dword [ebp - 0x1138]
xor esi, esi
shr eax, 2
mov dword [ebp - 0x1140], eax
mov eax, dword [ebp - 0x1140]
cmp esi, eax
je 0x4016de
mov eax, dword [ebp + esi*4 - 0x1018]
test eax, eax
je 0x4017e2
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4017e2
xor ecx, ecx
lea edi, [ebp - 0x111c]
mov dword [esp + 0xc], 0x104
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.PSAPI.DLL_GetModuleBaseNameA
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1134]
sub esp, 0x10
mov dword [esp], eax
call fcn.004015b2
push eax
mov ecx, dword [ebp - 0x1130]
mov dword [ebp - 0x1144], ecx
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x1144]
mov byte [ebp - 0x1139], 0
cmp ecx, eax
jne 0x4017b7
mov byte [ebp - 0x1139], 1
test ecx, ecx
je 0x4017b7
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x1134]
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
sete byte [ebp - 0x1139]
lea ecx, [ebp - 0x1134]
call fcn.0049d3d0
cmp byte [ebp - 0x1139], 0
mov dword [esp], ebx
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4017df
call eax
push edx
mov eax, dword [ebp + esi*4 - 0x1018]
jmp 0x4017e8
call eax
push eax
inc esi
jmp 0x4016f6
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4017f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
mov esi, dword [edi + eax + 0x78]
add esi, edi
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x20]
add eax, edi
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], ebx
je 0x401848
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ebx*4]
add eax, edi
mov dword [esp], eax
call fcn.0040168c
cmp eax, dword [ebp + 0xc]
jne 0x401845
add ebx, ebx
add ebx, edi
add ebx, dword [esi + 0x24]
movzx eax, word [ebx]
lea eax, [edi + eax*4]
add eax, dword [esi + 0x1c]
add edi, dword [eax]
mov eax, edi
jmp 0x40184a
inc ebx
jmp 0x401815
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401e4b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov eax, 0x13bc
mov ebp, esp
push edi
push esi
push ebx
call fcn.0040f1c8
sub esp, eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
jns 0x401e73
mov dword [esp], 0x4c9102
call fcn.004bf600
xor ecx, ecx
mov eax, esi
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
call fcn.00401592
mov dword [ebx], eax
mov edx, eax
lea eax, [eax + esi]
mov dword [ebp - 0x13ac], eax
mov dword [ebx + 8], eax
test esi, esi
je 0x401ead
mov ecx, esi
mov byte [edx], 0
inc edx
dec ecx
je 0x401ead
mov edi, edx
xor eax, eax
mov edx, dword [ebp - 0x13ac]
rep stosb byte es:[edi], al
mov dword [ebx + 4], edx
lea edi, [ebp - 0x9dc]
mov dword [esp], 0x4c9133
mov ecx, edi
call fcn.004015b2
push edx
lea ecx, [ebp - 0x13a0]
mov dword [esp], edi
call fcn.00490cd0
push eax
mov ecx, edi
call fcn.0049d3d0
lea ecx, [ebp - 0x13a0]
call fcn.00490f80
mov dword [ebp - 0x9dc], eax
mov edx, 1
jmp 0x401efe
mov eax, dword [ebp + edx*4 - 0x9e0]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x9dc], eax
inc edx
cmp edx, 0x270
jne 0x401efe
mov dword [ebp - 0x1c], 0x270
xor edi, edi
cmp edi, esi
je 0x401f6b
lea ecx, [ebp - 0x9dc]
call fcn.00499198
mov edx, 0x100
mov ecx, dword [ebx]
mul edx
mov byte [ecx + edi], dl
inc edi
jmp 0x401f2d
lea ecx, [ebp - 0x13a0]
call fcn.00490c50
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40212e
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov eax, ecx
mov ebp, esp
push esi
push ebx
mov ecx, dword [ecx + 0x18]
mov ebx, dword [ebp + 8]
movzx esi, byte [ecx + 0x1d]
mov dl, byte [ecx]
xor dl, byte [ebx]
xor dl, byte [esi + 0x5bc560]
mov byte [ecx], dl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0x1e]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 1], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0x1f]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 2], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0x1c]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 3], cl
mov cl, byte [ebx]
mov edx, ecx
add ecx, ecx
sar dl, 7
and edx, 0x1b
xor edx, ecx
mov byte [ebx], dl
mov edx, 4
mov ecx, dword [eax + 0x18]
mov bl, byte [ecx + edx - 4]
xor byte [ecx + edx], bl
mov ecx, dword [eax + 0x18]
mov bl, byte [ecx + edx - 3]
xor byte [ecx + edx + 1], bl
mov ecx, dword [eax + 0x18]
mov bl, byte [ecx + edx - 2]
xor byte [ecx + edx + 2], bl
mov ecx, dword [eax + 0x18]
mov bl, byte [ecx + edx - 1]
xor byte [ecx + edx + 3], bl
add edx, 4
cmp edx, 0x10
jne 0x402190
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0xc]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 0x10], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0xd]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 0x11], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0xe]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 0x12], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0xf]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 0x13], cl
mov edx, 0x14
mov ecx, dword [eax + 0x18]
mov bl, byte [ecx + edx - 4]
xor byte [ecx + edx], bl
mov ecx, dword [eax + 0x18]
mov bl, byte [ecx + edx - 3]
xor byte [ecx + edx + 1], bl
mov ecx, dword [eax + 0x18]
mov bl, byte [ecx + edx - 2]
xor byte [ecx + edx + 2], bl
mov ecx, dword [eax + 0x18]
mov bl, byte [ecx + edx - 1]
xor byte [ecx + edx + 3], bl
add edx, 4
cmp edx, 0x20
jne 0x402208
pop ebx
pop esi
pop ebp
ret 4
Function at 0x402242
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov eax, ecx
mov ecx, 0x1c
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword [eax + 0x18]
mov edx, ecx
lea esi, [edi + ecx]
sub ecx, 4
mov bl, byte [edi + ecx]
xor byte [esi], bl
mov esi, dword [eax + 0x18]
mov bl, byte [esi + edx - 3]
xor byte [esi + edx + 1], bl
mov esi, dword [eax + 0x18]
mov bl, byte [esi + edx - 2]
xor byte [esi + edx + 2], bl
mov esi, dword [eax + 0x18]
mov bl, byte [esi + edx - 1]
xor byte [esi + edx + 3], bl
cmp ecx, 0x10
jne 0x40224f
mov edx, dword [eax + 0x18]
mov esi, 0xc
movzx ecx, byte [edx + 0xc]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 0x10], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0xd]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 0x11], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0xe]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 0x12], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0xf]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 0x13], cl
mov edi, dword [eax + 0x18]
mov edx, esi
lea ecx, [edi + esi]
sub esi, 4
mov bl, byte [edi + esi]
xor byte [ecx], bl
mov edi, dword [eax + 0x18]
mov cl, byte [edi + edx - 3]
xor byte [edi + edx + 1], cl
mov edi, dword [eax + 0x18]
mov cl, byte [edi + edx - 2]
xor byte [edi + edx + 2], cl
mov edi, dword [eax + 0x18]
mov cl, byte [edi + edx - 1]
xor byte [edi + edx + 3], cl
test esi, esi
jne 0x4022ca
mov ebx, dword [ebp + 8]
mov dl, byte [ebx]
mov ecx, edx
and edx, 1
neg edx
shr cl, 1
and edx, 0xffffff8d
xor edx, ecx
mov byte [ebx], dl
mov ebx, dword [eax + 0x18]
movzx ecx, byte [ebx + 0x1d]
mov cl, byte [ecx + 0x5bc560]
xor cl, byte [ebx]
xor edx, ecx
mov byte [ebx], dl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0x1e]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 1], cl
mov edx, dword [eax + 0x18]
movzx ecx, byte [edx + 0x1f]
mov cl, byte [ecx + 0x5bc560]
xor byte [edx + 2], cl
mov eax, dword [eax + 0x18]
movzx edx, byte [eax + 0x1c]
mov dl, byte [edx + 0x5bc560]
xor byte [eax + 3], dl
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x4023e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push ebx
and edx, 1
shl edx, 4
mov esi, dword [ecx + 0x18]
add esi, edx
mov bl, byte [eax + esi + 0xf]
xor byte [edi + eax + 0xf], bl
dec eax
cmp eax, 0xfffffff0
jne 0x4023fc
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4024ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ebp - 0x20], eax
mov al, byte [edi + 1]
mov bl, byte [edi]
add edi, 4
mov byte [ebp - 0x19], al
mov al, byte [edi - 2]
mov byte [ebp - 0x1a], al
mov al, byte [edi - 1]
mov dl, byte [ebp - 0x1a]
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x19]
xor dl, byte [ebp - 0x1b]
mov esi, edx
xor eax, ebx
mov byte [ebp - 0x1c], dl
xor esi, eax
movzx eax, al
mov dword [esp], eax
call fcn.00428360
xor eax, ebx
xor eax, esi
mov byte [edi - 4], al
mov al, byte [ebp - 0x19]
xor al, byte [ebp - 0x1a]
movzx eax, al
mov dword [esp], eax
call fcn.00428360
xor al, byte [ebp - 0x19]
xor eax, esi
mov byte [edi - 3], al
movzx eax, byte [ebp - 0x1c]
mov dword [esp], eax
call fcn.00428360
xor bl, byte [ebp - 0x1b]
xor al, byte [ebp - 0x1a]
xor eax, esi
movzx ebx, bl
mov byte [edi - 2], al
mov dword [esp], ebx
call fcn.00428360
xor al, byte [ebp - 0x1b]
xor eax, esi
mov byte [edi - 1], al
cmp dword [ebp - 0x20], edi
jne 0x4024cc
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x40261a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ebp - 0x24], eax
mov al, byte [edi]
mov bl, byte [edi + 3]
add edi, 4
mov byte [ebp - 0x19], al
mov al, byte [edi - 3]
mov byte [ebp - 0x1a], al
mov al, byte [edi - 2]
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x19]
xor al, byte [ebp - 0x1a]
mov byte [ebp - 0x1d], al
mov al, byte [ebp - 0x1b]
xor eax, ebx
mov byte [ebp - 0x1f], al
mov al, byte [ebp - 0x1d]
xor al, byte [ebp - 0x1f]
mov byte [ebp - 0x1c], al
movzx eax, al
mov dword [esp], eax
call fcn.00428360
mov esi, eax
mov al, byte [ebp - 0x19]
xor al, byte [ebp - 0x1b]
xor eax, esi
movzx eax, al
mov dword [esp], eax
call fcn.00428360
movzx eax, al
mov dword [esp], eax
call fcn.00428360
xor eax, dword [ebp - 0x1c]
mov byte [ebp - 0x1e], al
mov al, byte [ebp - 0x1a]
xor eax, ebx
xor eax, esi
movzx eax, al
mov dword [esp], eax
call fcn.00428360
movzx eax, al
mov dword [esp], eax
call fcn.00428360
mov esi, dword [ebp - 0x1c]
xor esi, eax
movzx eax, byte [ebp - 0x1d]
mov dword [esp], eax
call fcn.00428360
xor al, byte [ebp - 0x19]
xor al, byte [ebp - 0x1e]
mov byte [edi - 4], al
mov al, byte [ebp - 0x1a]
xor al, byte [ebp - 0x1b]
movzx eax, al
mov dword [esp], eax
call fcn.00428360
xor al, byte [ebp - 0x1a]
xor eax, esi
mov byte [edi - 3], al
movzx eax, byte [ebp - 0x1f]
mov dword [esp], eax
call fcn.00428360
xor al, byte [ebp - 0x1b]
xor al, byte [ebp - 0x1e]
mov byte [edi - 2], al
mov al, byte [ebp - 0x19]
xor eax, ebx
movzx eax, al
mov dword [esp], eax
call fcn.00428360
xor eax, ebx
xor eax, esi
mov byte [edi - 1], al
cmp dword [ebp - 0x24], edi
jne 0x40262c
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x40e218
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041d924
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x40edec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40ee0b
mov eax, 0
jmp 0x40ee4f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40ee2e
mov eax, 0
jmp 0x40ee4f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40ee4a
mov eax, 0
jmp 0x40ee4f
mov eax, 1
leave
ret

Function at 0x40ee51
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40eeb0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40eea8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40eea8
mov eax, dword [ebp - 4]
jmp 0x40eec4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40ee85
mov eax, 0
leave
ret
Function at 0x4208b4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0
je 0x42097c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00420058
cmp eax, 1
jne 0x420972
mov dword [ebp - 0x3d], 0
mov dword [ebp - 0x39], 0
mov dword [ebp - 0x35], 0
mov dword [ebp - 0x31], 0
mov dword [ebp - 0x2d], 0
mov dword [ebp - 0x29], 0
mov dword [ebp - 0x25], 0
mov dword [ebp - 0x21], 0
mov dword [ebp - 0x1d], 0
mov dword [ebp - 0x19], 0
mov dword [ebp - 0x15], 0
mov dword [ebp - 0x11], 0
mov dword [ebp - 0xd], 0
mov byte [ebp - 9], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 4], 0x35
lea eax, [ebp - 0x3d]
mov dword [esp], eax
call fcn.00428170
lea eax, [ebp - 0x3d]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x42097d
nop
leave
ret