joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be70
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040a1b0
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x412b70], esi
jbe 0x40bfbd
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x412a70]
test byte [edx + ecx*8 + 4], 1
je 0x40bfbd
push 1
push ebx
push esi
call fcn.00409e40
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x40bfad
push 2
push ebx
push esi
call fcn.00409e40
add esp, 0xc
cmp eax, 0xffffffff
je 0x40bfad
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x40bf53
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0040c500
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x40bf16
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00409b40
add esp, 0xc
cmp eax, 0xffffffff
je 0x40bf32
sub ebp, eax
test ebp, ebp
jg 0x40bf0b
jmp 0x40bf47
cmp dword [0x40e57c], 5
jne 0x40bf45
mov dword [0x40e578], 0xd
mov ebx, eax
push edi
push esi
call fcn.0040c500
add esp, 8
jmp 0x40bf90
jge 0x40bf90
push 0
push ecx
push esi
call fcn.00409e40
add esp, 0xc
push esi
call fcn.0040c1e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x40bf90
mov dword [0x40e578], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40e57c], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00409e40
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40e578], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x403203
pop dword [ebp - 0x18]
mov eax, 0x403203
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x63808d40
add dword [ebp - 0x28], 0xead1b80b
mov dword [ebp - 0x24], 0xf0cc880e
sub dword [ebp - 0x24], 0xbe993bc9
mov dword [ebp - 0x20], 0xe71ed28a
sub dword [ebp - 0x20], 0x9ad28e5c
mov dword [ebp - 0x1c], 0x23e13219
sub dword [ebp - 0x1c], 0x23e13219
lea eax, [ebp - 0x28]
push eax
mov eax, 0xfb2a805b
sub eax, 0xfae9ffcf
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x9978cab9
sub dword [ebp - 0x28], 0x25066163
mov dword [ebp - 0x24], 0x4f751292
sub dword [ebp - 0x24], 0xe08b11d
mov dword [ebp - 0x20], 0xe24a0f8
add dword [ebp - 0x20], 0x554acb74
mov dword [ebp - 0x1c], 0x618c1323
sub dword [ebp - 0x1c], 0x618c1323
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x547dc7d2
sub eax, 0x543d46fe
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39c0d
push 0
call eax
mov ecx, 0xff1bad19
sub ecx, 0xff1b5876
mov edi, eax
mov ebx, 0xf64ddb43
add ebx, 0x9f334bd
add ebx, dword [ebp - 0x18]
mov edx, 0x5b9194d0
sub edx, 0x100edf2c
mov dword [ebp - 0x10], 0xc90cb3a4
mov esi, dword [ebx]
sub dword [ebp - 0x10], 0xf0705bd3
xor esi, edx
xor dword [ebp - 4], 0x846219d3
mov dword [edi], esi
sub dword [ebp - 4], 0x86373aed
add edi, 4
add ebx, 0x98bd7e9d
add ebx, 0x67428167
loop 0x403320
add eax, 0x38cb381b
add eax, 0xc7360d44
mov ebx, eax
add eax, 0x54eb86a
add eax, 0xfab1479b
mov ecx, 0xbaf9fa81
add ecx, 0x4546057f
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x482af0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x61000]
push edi
or ebp, 0xffffffff
jmp 0x482b12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x482b19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x482b08
mov eax, 1
add ebx, ebx
jne 0x482b2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x482b3c
jne 0x482b4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x482b4c
dec eax
add ebx, ebx
jne 0x482b48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x482b20
xor ecx, ecx
sub eax, 3
jb 0x482b64
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x482bd6
sar eax, 1
mov ebp, eax
jmp 0x482b6f
add ebx, ebx
jne 0x482b6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x482b7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x482ba0
inc ecx
add ebx, ebx
jne 0x482b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x482b81
jne 0x482b9d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x482b81
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x482bc0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x482bb1
jmp 0x482b0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x482bc0
add edi, ecx
jmp 0x482b0e
pop esi
mov edi, esi
mov ecx, 0x47f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x482bde
cmp byte [edi], 7
jne 0x482bde
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 eax, ebx
loop 0x482be3
lea edi, [esi + 0x80000]
mov eax, dword [edi]
or eax, eax
je 0x482c5b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x84bf8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x84c34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x482c10
mov ecx, edi
jns 0x482c3f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x84c38]
or eax, eax
je 0x482c55
mov dword [ebx], eax
add ebx, 4
jmp 0x482c2d
call dword [esi + 0x84c3c]
popal
jmp 0x4050a8
Function at 0x401220
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x430ee0], 0x24e1
mov eax, dword [0x430ee0]
sub eax, 0x24e1
mov dword [0x430ee0], eax
mov ecx, 1
test ecx, ecx
je 0x4012cb
mov edx, dword [0x430ee0]
cmp edx, dword [ebp + 0xc]
jb 0x401257
jmp 0x4012cb
cmp dword [0x430ee0], 0
jne 0x401275
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401275
xor eax, eax
jmp 0x4012cb
mov eax, dword [ebp + 8]
add eax, dword [0x430ee0]
mov ecx, dword [eax]
add ecx, dword [0x430ee0]
mov edx, dword [ebp + 8]
add edx, dword [0x430ee0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x141ec
mov eax, dword [0x430ee0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x430ee0]
push eax
call fcn.004012d0
add esp, 8
mov ecx, dword [0x430ee0]
add ecx, 4
mov dword [0x430ee0], ecx
jmp 0x40123d
mov esp, ebp
pop ebp
ret

Function at 0x401530
Capabilities:
Get common file path
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa00
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x79c], 4
mov dword [ebp - 0x784], 0x80000000
mov dword [ebp - 0x798], 0x20019
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x72c], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp dword [ebp - 0x1c], 0
jne 0x40158c
xor eax, eax
jmp 0x401968
pushal
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x790], 0x64
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x790], 0x64
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x7ec], str.SOFTWAREmmasses
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x790], 0x64
mov dword [ebp - 0x28], 2
call fcn.00401500
mov edx, 0x43
mov eax, dword [ebp - 0x7ec]
mov word [eax + 0x12], dx
mov ecx, 0x6c
mov edx, dword [ebp - 0x7ec]
mov word [edx + 0x14], cx
lea eax, [ebp - 0x34]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x7ec]
push ecx
push 0x80000002
call dword [0x430ee8]
test eax, eax
je 0x401651
xor eax, eax
jmp 0x401968
lea edx, [ebp - 0x34]
push edx
push 1
push 0
push str.clsid083863f1_70de_11d0_bd40_00a0c911ce86instance129d7e40_c10d_11d0_afb9_00aa00b67a42
push 0x80000000
call dword [0x430ee8]
test eax, eax
je 0x401674
xor eax, eax
jmp 0x401968
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x40168c
xor eax, eax
jmp 0x401968
push 1
mov eax, dword [0x430ee4]
push eax
jmp section..htext
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40503c], 1
mov dword [0x405038], 1
mov dword [0x405034], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40500c], eax
mov eax, dword [0x405048]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40505c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x405044]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x403010], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401700
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401760
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401880
mov eax, dword [0x405054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401794
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401817
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401780
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4018a7
mov eax, dword [0x405054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x405054]
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 0x401887
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401810
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401820
add dword [0x405050], 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 [0x405054]
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 0x401810
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40179e
mov eax, dword [0x405054]
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 sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x401dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40506c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405064]
sub esp, 4
test ebx, ebx
je 0x401e25
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401e1e
test eax, eax
jne 0x401e1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e00
mov dword [esp], 0x40506c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402160
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402185
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402190
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402185
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 0x4021d8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4021ce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4021da
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4021c0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x47b5af
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47b5dd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47b5fb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b515
jmp 0x47b5fb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47b5fb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047b515
test edi, edi
mov eax, edi
jne 0x47b5e5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40f380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549d9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0x6e80cc
mov dword [ebp - 4], 0
mov dword [edi + 8], 0x6e80cc
mov dword [edi + 0x14], 0x6e80cc
mov dword [edi + 0x20], 0x6e80cc
mov dword [edi + 0x24], 0x6e80cc
mov dword [edi + 0x28], 0x6e80cc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [edi + 0x30], eax
cmp dword [esi + 4], 3
sete al
mov byte [edi + 0x34], al
cmp dword [esi + 4], 5
sete al
mov byte [edi + 0x35], al
mov dword [edi + 0x48], 0x6e80cc
mov dword [edi + 0x50], 0x6e80cc
mov dword [edi + 0x68], 0
mov dword [edi + 0x74], 0x6e80cc
mov byte [ebp - 4], 9
call fcn.004186c0
push dword [esi + 4]
lea eax, [ebp + 8]
push esi
push eax
call fcn.00417a60
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 4]
add ecx, eax
push esi
push ecx
mov ecx, edi
call fcn.00415e10
cmp eax, esi
sete cl
mov byte [edi + 0x2e], cl
je 0x40f472
mov eax, dword [edi + 0x74]
mov byte [edi + 0x2d], 0
cmp dword [eax + 4], 0
jne 0x40f472
push str.missing_left_delim
push 0x12
lea ecx, [edi + 0x74]
call fcn.004058c0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40f492
cmp eax, 0xffffffff
je 0x40f4a1
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x40f4a1
push 4
push 2
push dword [ebp + 8]
call fcn.00403690
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4194e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, eax
push ebx
sar ecx, 2
push ebp
mov ebx, ecx
mov dword [esp + 0x14], ecx
sar ebx, 1
push esi
push edi
test ebx, ebx
jle 0x419609
lea esi, [ecx - 1]
sar esi, 1
mov dword [esp + 0x18], esi
nop dword [eax]
dec ebx
mov dword [esp + 0x14], ebx
lea ecx, [eax + ebx*4]
mov eax, dword [ecx]
mov ebp, ebx
mov dword [esp + 0x10], eax
mov edx, ebx
mov dword [ecx], 0x6e80cc
mov edi, dword [esp + 0x24]
cmp ebx, esi
jge 0x41956d
mov ebx, dword [esp + 0x18]
lea esi, [edx + edx]
lea ecx, [edi + 8]
lea ecx, [ecx + esi*4]
lea eax, [ecx - 4]
push eax
push ecx
call fcn.00406020
mov ecx, dword [edi + ebp*4]
add esp, 8
movzx edx, al
xor edx, 1
inc edx
add edx, esi
mov eax, dword [edi + edx*4]
mov dword [edi + ebp*4], eax
mov ebp, edx
mov dword [edi + edx*4], ecx
cmp edx, ebx
jl 0x419534
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebp, esi
jne 0x41958b
mov edx, dword [esp + 0x1c]
test dl, 1
jne 0x41958b
mov ecx, dword [edi + ebp*4]
mov eax, dword [edi + edx*4 - 4]
mov dword [edi + ebp*4], eax
lea ebp, [edx - 1]
mov dword [edi + edx*4 - 4], ecx
cmp ebx, ebp
jge 0x4195c4
nop
lea ebx, [ebp - 1]
sar ebx, 1
lea eax, [esp + 0x10]
push eax
lea esi, [edi + ebx*4]
push esi
call fcn.00406020
add esp, 8
test al, al
je 0x4195bc
mov ecx, dword [edi + ebp*4]
mov eax, dword [esi]
mov dword [edi + ebp*4], eax
mov ebp, ebx
mov dword [esi], ecx
cmp dword [esp + 0x14], ebx
jl 0x419590
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + ebp*4]
mov eax, dword [esp + 0x10]
mov dword [edi + ebp*4], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
test eax, eax
je 0x4195ec
cmp eax, 0xffffffff
je 0x4195fc
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4195fc
push 4
push 2
push dword [esp + 0x18]
call fcn.00403690
add esp, 0xc
test ebx, ebx
jle 0x419609
mov eax, dword [esp + 0x24]
jmp 0x419510
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x419890
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov edx, ebp
lea ebx, [eax - 1]
mov dword [esp + 0x10], edx
push esi
sar ebx, 1
mov esi, ebp
push edi
mov edi, dword [esp + 0x14]
cmp ebp, ebx
jge 0x4198f1
add esi, esi
lea ecx, [edi + 8]
lea ecx, [ecx + esi*4]
lea eax, [ecx - 4]
push eax
push ecx
call fcn.00406020
movzx eax, al
add esp, 8
xor eax, 1
inc eax
add esi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + ebp*4]
mov ecx, dword [eax + esi*4]
mov dword [eax + ebp*4], ecx
mov ebp, esi
mov dword [eax + esi*4], edx
cmp esi, ebx
jl 0x4198b1
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp esi, ebx
jne 0x419912
test al, 1
jne 0x419912
mov ecx, dword [edi + ebp*4]
mov eax, dword [edi + eax*4 - 4]
mov dword [edi + ebp*4], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + eax*4 - 4], ecx
lea ebp, [eax - 1]
mov edi, dword [esp + 0x14]
cmp edx, ebp
jge 0x419941
push dword [esp + 0x20]
lea ebx, [ebp - 1]
sar ebx, 1
lea esi, [edi + ebx*4]
push esi
call fcn.00406020
add esp, 8
test al, al
je 0x419941
mov ecx, dword [edi + ebp*4]
mov eax, dword [esi]
mov dword [edi + ebp*4], eax
mov ebp, ebx
mov dword [esi], ecx
cmp dword [esp + 0x18], ebx
jl 0x419916
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + ebp*4]
mov eax, dword [edx]
mov dword [edi + ebp*4], eax
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
ret