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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x42d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4016ae
cmp dword [ebp + 0xc], esi
je 0x4016ae
cmp dword [ebp + 0x10], esi
je 0x4016ae
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4016ae
push 0x4232a8
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040dab0
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x401659
push 2
push ebx
push edi
call fcn.0040e0c4
push edi
call fcn.0040e723
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x401649
inc eax
push eax
call fcn.0040a15e
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x401649
push ebx
push ebx
push edi
call fcn.0040e0c4
mov ebx, dword [ebp - 0x14]
push edi
mov edi, dword [ebp - 0x18]
push edi
push 1
push ebx
call fcn.0040dca0
lea eax, [ebp - 0x20]
mov byte [ebx + edi], 0
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.004011f0
add esp, 0x30
cmp eax, 1
jne 0x40161d
mov eax, dword [ebp - 0x18]
add eax, ebx
push eax
mov dword [ebp + 8], eax
call fcn.004010b0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0040a15e
add esp, 8
mov ebx, eax
mov dword [ebp - 0x18], ebx
push edi
push dword [ebp + 8]
push ebx
call fcn.0040b6f0
lea eax, [ebp + 8]
mov byte [ebx + edi], 0
push eax
push ebx
call fcn.00401140
mov edi, dword [ebp + 0x14]
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x401616
mov esi, dword [ebp + 8]
mov eax, esi
mov ebx, dword [ebp + 0x18]
cmp ebx, esi
cmovbe eax, ebx
mov dword [ebp + 8], eax
test edi, edi
je 0x4015f0
push eax
push ecx
push edi
call fcn.0040b6f0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp ebx, eax
jbe 0x4015f0
mov byte [eax + edi], 0
xor ebx, ebx
push dword [ebp - 0x18]
call fcn.0040a167
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call fcn.0040a167
add esp, 4
push dword [ebp - 0x1c]
call fcn.0040d9c9
add esp, 4
jmp 0x401661
mov ebx, 1
jmp 0x4015f2
mov eax, dword [ebp - 0x14]
mov ebx, 1
mov edi, dword [ebp + 0x14]
push eax
call fcn.0040a167
add esp, 4
push dword [ebp - 0x1c]
call fcn.0040d9c9
add esp, 4
jmp 0x401661
push dword [ebp - 0x1c]
mov edi, dword [ebp + 0x14]
call fcn.0040d9c9
add esp, 4
jmp 0x401661
mov edi, dword [ebp + 0x14]
mov ebx, 1
test ebx, ebx
je 0x40169a
mov ecx, dword [ebp + 0x10]
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x401670
sub esi, edx
cmp dword [ebp + 0x18], esi
mov ebx, esi
cmovbe ebx, dword [ebp + 0x18]
test edi, edi
je 0x40169a
push ebx
push ecx
push edi
call fcn.0040b6f0
add esp, 0xc
cmp dword [ebp + 0x18], ebx
jbe 0x40169a
mov byte [ebx + edi], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebp
ret

Function at 0x401b80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push edi
push 0
push 0
push 0x1f4
push 0x2bc
push 0
push SysReAllocString
push 0xcf0000
push 0x42dd68
push 0x42dd68
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401bef
push 0x10
push str.error
push str.CreateWindow_ErrorA_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a16c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push edi
push 0
push esi
push 0x1f4
push 0x2bc
push 0
push 0
push 0x50300100
push 0x4234a8
push str.ListBox
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x42de6c], eax
test eax, eax
jne 0x401c5a
push 0x10
push str.error
push str.CreateWindow_ErrorB_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a16c
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push dword [ebp + 0x10]
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 4]
mov dword [0x42de74], edi
xor ecx, ebp
pop edi
mov dword [0x42de78], eax
mov eax, 1
pop esi
call fcn.0040a16c
mov esp, ebp
pop ebp
ret
Function at 0x405150
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
mov ebx, eax
call fcn.00404350
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.00405ed0
push 0
push dword [esi + 4]
call fcn.00401700
add esp, 8
cmp eax, 1
je 0x405220
nop word [eax + eax]
cmp eax, 2
jne 0x40520a
mov ecx, esi
call fcn.00404bb0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004050b0
test eax, eax
je 0x4051dc
mov ecx, dword [esi + 0xfc]
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x54]
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x34]
test eax, eax
je 0x4051dc
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4051dc
push ecx
push eax
mov ecx, esi
call fcn.00405ab0
call edi
mov ebx, eax
jmp 0x40520a
call edi
sub eax, ebx
cmp eax, 0x3e8
jb 0x405202
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x405202
mov ecx, dword [ebp - 8]
push eax
call fcn.00404480
test eax, eax
je 0x405202
mov dword [esi + 0x5c], 0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [esi + 4]
call fcn.00401700
add esp, 8
cmp eax, 1
jne 0x405190
mov ecx, esi
call fcn.004050f0
test eax, eax
jne 0x405236
mov ecx, esi
call fcn.00405120
test eax, eax
je 0x405251
push 0
mov ecx, esi
call fcn.00404f50
test eax, eax
je 0x405251
push dword [esi + 0x4c]
push dword [esi + 0x5c]
call fcn.00402d70
add esp, 8
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x40526c
mov ecx, dword [ebp - 8]
push eax
call fcn.00404480
test eax, eax
je 0x40526c
mov dword [esi + 0x5c], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4094a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42258d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1c], 0
mov eax, dword [ebp + 8]
jne 0x409569
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x409569
push eax
lea ecx, [ebp - 0x28]
call fcn.00408d60
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x409549
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp edx, 0xf
cmova eax, ebx
cmp byte [ecx + eax - 1], 0x5c
je 0x409522
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.00409e40
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
cmp edx, 0xf
lea eax, [ebp - 0x28]
cmova eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40953b
test al, 0x10
jne 0x409549
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.00406ce0
mov eax, esi
jmp 0x40956b
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 4]
call fcn.00408ee0
mov dword [esi + 0x1c], edi
lea ecx, [ebp - 0x28]
mov esi, 1
call fcn.00406ce0
mov eax, esi
jmp 0x40956b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a16c
mov esp, ebp
pop ebp
ret 8
Function at 0x40ac77
Capabilities:
Parse pe header

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

Function at 0x40e51c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ad80
mov eax, dword [0x42d040]
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.004139e1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40e55e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40e6ba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421720
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 + 0x62e468]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041522f
mov ecx, dword [esi*4 + 0x62e468]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x40e6b3
cmp eax, dword [ecx + edi + 0x24]
jne 0x40e6b3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e6b3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041522f
add esp, 0x14
test edx, edx
jl 0x40e6b3
jg 0x40e629
test eax, eax
jb 0x40e6b3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40e6b3
jl 0x40e643
cmp dword [ebp - 0x1008], eax
ja 0x40e6b3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40e661
test ebx, ebx
je 0x40e69a
cmp ecx, edi
jae 0x40e69a
mov al, byte [ecx]
cmp al, 0xd
jne 0x40e67b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40e687
cmp byte [ecx + 1], 0xa
jne 0x40e687
inc ecx
jmp 0x40e687
movzx eax, al
movsx eax, byte [eax + 0x42d270]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40e661
cmp edx, ebx
jne 0x40e661
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40e6b8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a16c
leave
ret
Function at 0x41456a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x62e468]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4145aa
cmp byte [ebx], 0xa
jne 0x4145aa
or byte [edi + eax + 0x28], 4
jmp 0x4145af
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4146ae
mov dl, byte [eax]
cmp dl, 0x1a
je 0x414691
inc eax
cmp dl, 0xd
je 0x4145db
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x414601
cmp eax, ecx
jae 0x41460f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4145c3
jmp 0x4146ae
push 0
lea eax, [ebp - 0x10]
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 0x41468c
cmp dword [ebp - 0x10], 0
je 0x41468c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x62e468]
test byte [eax + edi + 0x28], 0x48
je 0x414666
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414651
mov byte [esi], dl
jmp 0x414662
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x62e468]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4146ae
cmp byte [ebp - 1], 0xa
jne 0x414675
cmp esi, ebx
jne 0x414675
mov byte [esi], 0xa
jmp 0x4146ad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041524d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4146ae
mov byte [esi], 0xd
jmp 0x4146ad
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x62e468]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4146ab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4146ae
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4146b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x62e468]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4146fd
cmp word [ebx], dx
jne 0x4146fd
or byte [eax + edi + 0x28], 4
jmp 0x414702
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x414865
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x414845
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x414743
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414779
cmp eax, edx
jae 0x414787
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41471e
jmp 0x414865
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414840
cmp dword [ebp - 0x18], 0
je 0x414840
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x62e468]
test byte [eax + edi + 0x28], 0x48
je 0x414816
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4147da
mov word [esi], cx
jmp 0x414811
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x62e468]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x62e468]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x62e468]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x414865
pop eax
cmp word [ebp - 4], ax
jne 0x414826
cmp esi, ebx
jne 0x414826
mov word [esi], ax
jmp 0x414862
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041524d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x414865
push 0xd
pop eax
jmp 0x414821
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x62e468]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41485f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x414865
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4173df
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42600c
push 0x426004
push str.FlsAlloc
push 0x1f
call fcn.0041725e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417413
push dword [ebp + 8]
mov ecx, esi
call dword [0x423210]
call esi
jmp 0x417419
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41745d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42601c
push 0x426014
push str.FlsGetValue
push 0x21
call fcn.0041725e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417494
push dword [ebp + 8]
mov ecx, esi
call dword [0x423210]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41749c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426024
push 0x42601c
push str.FlsSetValue
push 0x22
call fcn.0041725e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4174d6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x423210]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x419a7a
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 0x419b17
push ebx
push esi
call fcn.00419a43
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.004199d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419ac4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419b16
push edi
push eax
call fcn.00415fa3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419ae4
call fcn.004139a7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419b15
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004199d7
add esp, 0x20
test eax, eax
jne 0x419b03
push edi
call fcn.004139a7
jmp 0x419b0b
push ebx
call fcn.004139a7
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 0x419b1a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x419b2b
pop esi
ret
push ebx
push edi
push esi
call fcn.00419a43
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00415fa3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x419b53
push ebx
push esi
push edi
call fcn.0040b6f0
add esp, 0xc
push 0
call fcn.004139a7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x419f23
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419b68
Function at 0x41f075
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041eff1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41f1e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41f1e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41f199
jg 0x41f0d1
test eax, eax
je 0x41f18f
push 1
push 0x1000
call fcn.004170ce
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41f0f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41f186
push 0x8000
push ebx
call fcn.00412e0b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41f11d
jg 0x41f118
cmp ecx, 0x1000
jb 0x41f11d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00415d87
add esp, 0x10
cmp eax, 0xffffffff
je 0x41f162
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 0x41f118
jl 0x41f149
test ecx, ecx
jne 0x41f10a
push dword [ebp - 0xc]
push ebx
call fcn.00412e0b
push esi
call fcn.004139a7
add esp, 0xc
xor ebx, ebx
jmp 0x41f1f2
cmp byte [edi + 0x24], 0
je 0x41f179
cmp dword [edi + 0x20], 5
jne 0x41f179
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41f184
mov ebx, dword [edi + 0x18]
jmp 0x41f186
xor ebx, ebx
push esi
call fcn.004139a7
pop ecx
jmp 0x41f1f2
test ecx, ecx
jg 0x41f15b
jl 0x41f199
test eax, eax
jae 0x41f15b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041524d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41f1b9
cmp byte [edi + 0x1c], 0
je 0x41f15b
jmp 0x41f1ea
push ebx
call fcn.0041a7fb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41f15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41f1f2
cmp byte [edi + 0x1c], 0
je 0x41f1ef
mov ebx, dword [edi + 0x18]
jmp 0x41f1f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041524d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421670
Capabilities:
Parse pe header

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