joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004093eb
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x6c]
push edx
call fcn.00408fd5
add esp, 0x10
push 1
mov eax, dword [ebp - 0x30]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004093eb
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x164]
push eax
call fcn.00408fd5
add esp, 0x10
push 1
movzx ecx, word [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004093eb
add esp, 0xc
mov ax, word [ebp - 0x15e]
mov word [ebp - 0x16c], ax
xor ecx, ecx
mov word [ebp - 0x168], cx
jmp 0x403734
mov dx, word [ebp - 0x168]
add dx, 1
mov word [ebp - 0x168], dx
movzx eax, word [ebp - 0x168]
movzx ecx, word [ebp - 0x16c]
cmp eax, ecx
jge 0x4037af
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
lea eax, [ebp - 0x2c]
push eax
call fcn.00408fd5
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040fd80
add esp, 4
test eax, eax
je 0x403796
push 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004048c5
add esp, 0xc
test eax, eax
je 0x403796
push 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040fd00
add esp, 0xc
test eax, eax
jne 0x4037aa
push 1
push 0xffffffffffffffd8
mov eax, dword [ebp + 8]
push eax
call fcn.004093eb
add esp, 0xc
mov al, 1
jmp 0x4037b1
jmp 0x403722
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d3e
mov esp, ebp
pop ebp
ret

Function at 0x403810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004093eb
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.00408fd5
add esp, 0x10
push 1
mov eax, dword [ebp - 8]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004093eb
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x13c]
push eax
call fcn.00408fd5
add esp, 0x10
movzx ecx, word [ebp - 0x128]
test ecx, ecx
jle 0x4038e2
push 1
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.004093eb
add esp, 0xc
push 1
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004093eb
add esp, 0xc
push 1
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004093eb
add esp, 0xc
push 1
push 4
mov edx, dword [ebp + 8]
push edx
call fcn.004093eb
add esp, 0xc
push 1
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.004093eb
add esp, 0xc
push 1
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.004093eb
add esp, 0xc
mov al, 1
jmp 0x4038e4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d3e
mov esp, ebp
pop ebp
ret
Function at 0x403950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x144], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004093eb
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.00408fd5
add esp, 0x10
push 1
mov eax, dword [ebp - 8]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004093eb
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x13c]
push eax
call fcn.00408fd5
add esp, 0x10
movzx ecx, word [ebp - 0x128]
test ecx, ecx
jle 0x403a3a
push 1
push 0x68
mov edx, dword [ebp + 8]
push edx
call fcn.004093eb
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
push 4
lea ecx, [ebp - 0x140]
push ecx
call fcn.00408fd5
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x144]
push eax
call fcn.00408fd5
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403590
add esp, 8
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004093eb
add esp, 0xc
mov eax, dword [ebp - 0x144]
jmp 0x403a3c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d3e
mov esp, ebp
pop ebp
ret
Function at 0x403a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040fd80
add esp, 4
test eax, eax
je 0x403a83
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040fd80
add esp, 4
test eax, eax
jne 0x403a8a
xor eax, eax
jmp 0x403c75
mov edx, dword [ebp + 8]
push edx
call fcn.00403950
add esp, 4
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
xor edx, edx
mov ecx, 0x14
div ecx
mov dword [ebp - 0x22c], eax
xor edx, edx
mov word [ebp - 0x21c], dx
jmp 0x403ace
mov ax, word [ebp - 0x21c]
add ax, 1
mov word [ebp - 0x21c], ax
movzx ecx, word [ebp - 0x21c]
cmp ecx, dword [ebp - 0x22c]
jae 0x403c73
mov edx, dword [ebp + 8]
push edx
push 1
push 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.00408fd5
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410424
add esp, 4
mov dword [ebp - 0x234], eax
push 0
mov edx, dword [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403590
add esp, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004093eb
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x100
lea eax, [ebp - 0x104]
push eax
call fcn.00408fd5
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0041171a
add esp, 8
test eax, eax
jne 0x403c59
push 0
mov eax, dword [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403590
add esp, 8
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004093eb
add esp, 0xc
xor eax, eax
mov word [ebp - 0x220], ax
jmp 0x403ba0
mov cx, word [ebp - 0x220]
add cx, 1
mov word [ebp - 0x220], cx
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x224]
push eax
call fcn.00408fd5
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410424
add esp, 4
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x224], 0
jne 0x403bd7
jmp 0x403c59
push 0
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403590
add esp, 8
add eax, 2
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004093eb
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x100
lea eax, [ebp - 0x204]
push eax
call fcn.00408fd5
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x204]
push edx
call fcn.0041171a
add esp, 8
test eax, eax
jne 0x403c3f
movzx eax, word [ebp - 0x220]
mov ecx, dword [ebp - 0x208]
lea eax, [ecx + eax*4]
jmp 0x403c75
push 0
mov edx, dword [ebp - 0x230]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004093eb
add esp, 0xc
jmp 0x403b8e
push 0
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004093eb
add esp, 0xc
jmp 0x403abc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d3e
mov esp, ebp
pop ebp
ret
Function at 0x404597
Capabilities:
Parse pe header

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

Function at 0x41021d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00403d50
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411e67
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41025f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4103bb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ec80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42def0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414012
mov ecx, dword [esi*4 + 0x42def0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4103b4
cmp eax, dword [edi + ecx + 0x24]
jne 0x4103b4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4103b4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414012
add esp, 0x14
test edx, edx
jl 0x4103b4
jg 0x41032a
test eax, eax
jb 0x4103b4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4103b4
jl 0x410344
cmp dword [ebp - 0x1008], eax
ja 0x4103b4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x410362
test ebx, ebx
je 0x41039b
cmp ecx, edi
jae 0x41039b
mov al, byte [ecx]
cmp al, 0xd
jne 0x41037c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410388
cmp byte [ecx + 1], 0xa
jne 0x410388
inc ecx
jmp 0x410388
movzx eax, al
movsx eax, byte [eax + 0x428250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x410362
cmp edx, ebx
jne 0x410362
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4103b9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403d3e
leave
ret
Function at 0x413316
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42def0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413356
cmp byte [ebx], 0xa
jne 0x413356
or byte [eax + edi + 0x28], 4
jmp 0x41335b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x413459
mov al, byte [edx]
cmp al, 0x1a
je 0x41343b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41338a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4133af
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4133b9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41336c
jmp 0x413459
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413436
cmp dword [ebp - 0xc], 0
je 0x413436
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42def0]
test byte [eax + edi + 0x28], 0x48
je 0x413410
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4133fb
mov byte [esi], dl
jmp 0x41340c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42def0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413459
cmp byte [ebp - 1], 0xa
jne 0x41341f
cmp esi, ebx
jne 0x41341f
mov byte [esi], 0xa
jmp 0x413458
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414030
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413459
mov byte [esi], 0xd
jmp 0x413458
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42def0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413455
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413459
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413462
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42def0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4134a5
cmp word [esi], dx
jne 0x4134a5
or byte [edi + eax + 0x28], 4
jmp 0x4134aa
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4135fd
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4135dd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4134ec
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x413522
cmp eax, edx
jae 0x41352e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4134c4
jmp 0x4135fd
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4135d9
cmp dword [ebp - 0x14], 0
je 0x4135d9
mov eax, dword [ebx*4 + 0x42def0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4135b1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41357a
mov word [esi], cx
jmp 0x4135ad
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42def0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42def0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42def0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4135fd
pop ebx
cmp word [ebp - 4], bx
jne 0x4135c2
cmp esi, dword [ebp + 0xc]
jne 0x4135c2
mov word [esi], bx
jmp 0x4135fa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414030
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4135fd
push 0xd
jmp 0x4135f6
mov ecx, dword [ebx*4 + 0x42def0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4135f4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4135fd
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413e1e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413c8f
Function at 0x4176db
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x417778
push ebx
push esi
call fcn.004176a4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004175ed
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417725
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417777
push edi
push eax
call fcn.00414ef8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417745
call fcn.00411bc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417776
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004175ed
add esp, 0x20
test eax, eax
jne 0x417764
push edi
call fcn.00411bc4
jmp 0x41776c
push ebx
call fcn.00411bc4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4185c4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423750
push 0x423748
push str.FlsAlloc
push 0x1e
call fcn.004184e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4185f8
push dword [ebp + 8]
mov ecx, esi
call dword [0x420178]
call esi
jmp 0x4185fe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418642
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423760
push 0x423758
push str.FlsGetValue
push 0x20
call fcn.004184e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418679
push dword [ebp + 8]
mov ecx, esi
call dword [0x420178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c9e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c961
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41cb5d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41cb5d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41cb0c
jg 0x41ca3e
test eax, eax
je 0x41cb02
push 1
push 0x1000
call fcn.00416284
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41ca64
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x41caf9
push 0x8000
push ebx
call fcn.00410fba
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41ca90
jg 0x41ca8b
cmp ecx, 0x1000
jb 0x41ca90
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041497b
add esp, 0x10
cmp eax, 0xffffffff
je 0x41cad5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41ca8b
jl 0x41cabc
test ecx, ecx
jne 0x41ca7d
push dword [ebp - 0xc]
push ebx
call fcn.00410fba
push esi
call fcn.00411bc4
add esp, 0xc
xor edi, edi
jmp 0x41cb6e
cmp byte [edi + 0x24], 0
je 0x41caec
cmp dword [edi + 0x20], 5
jne 0x41caec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41caf7
mov edi, dword [edi + 0x18]
jmp 0x41caf9
xor edi, edi
push esi
call fcn.00411bc4
pop ecx
jmp 0x41cb6e
test ecx, ecx
jg 0x41cace
jl 0x41cb0c
test eax, eax
jae 0x41cace
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414030
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41cb2f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41cace
jmp 0x41cb66
push ebx
call fcn.00417c16
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41cace
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x41cb6e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41cb6b
mov edi, dword [edi + 0x18]
jmp 0x41cb6e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00414030
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ea00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ea2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ea2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004015cd
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401b78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, esi
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x401c25
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x401bb2
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401bac
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401bcf
mov eax, dword [ebp + 0xc]
mov edx, esi
inc edx
imul eax, edx
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x401c35
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.00401b35
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.00401b35
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
xor edx, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x18]
mov ecx, edx
or cl, 1
mov edi, esi
imul edi, ecx
sub edx, edi
add edx, eax
push edx
call fcn.00401b1b
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401bd7
inc dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, esi
sar edi, cl
cmp dword [ebp - 4], edi
jle 0x401ba2
pop edi
pop esi
pop ebx
leave
ret