joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4372eb
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.0043dc10
push 0x140
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.0043dc10
xor eax, eax
lea edi, [ebp - 0x128]
stosd dword es:[edi], eax
add esp, 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x118]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00438ea7
sub eax, dword [0x594720]
cmp eax, 0x493e0
jb 0x43749d
call fcn.00438ea7
mov dword [0x594720], eax
call fcn.00438100
test eax, eax
je 0x43749d
push esi
lea eax, [ebp - 0x108]
push 0x593ed8
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x108]
push eax
call fcn.0042e106
push str.PAULATempTimeDetectionFile
lea eax, [ebp - 0x108]
push 0x46dea4
push eax
call fcn.0042ebc4
add esp, 0x1c
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x26c], esi
cmp esi, 0xffffffff
je 0x43749d
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x264]
jg 0x437408
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
sub esp, 0x10
lea esi, [ebp - 0x118]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x128]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00438d9e
add esp, 0x20
cmp eax, 0xdbba0
jle 0x437476
lea eax, [ebp - 0x108]
push eax
call fcn.0042e106
lea eax, [ebp - 0x23c]
mov dword [esp], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042ed96
lea eax, [ebp - 0x108]
push eax
call fcn.0040c8d3
add esp, 0x10
test eax, eax
je 0x437476
inc ebx
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4373dd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x43749f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret
Function at 0x439880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1444
call fcn.0043c600
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1440]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x1234
push ebx
push eax
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1444], ebx
push ebx
push eax
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043dc10
push esi
call fcn.0042da83
add esp, 0x28
test eax, eax
je 0x4398f3
or eax, 0xffffffff
jmp 0x439a45
test edi, edi
je 0x439906
push 0x1234
push ebx
push edi
call fcn.0043dc10
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e1f0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x461720
push eax
call fcn.004252b8
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.004475c7
add esp, 0x24
test eax, eax
jne 0x43996f
call fcn.00447349
push eax
push 0x461d34
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042eb39
add esp, 0x10
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.0043bef4
push 0x32a
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateTrackProg.c
lea eax, [ebp - 0x108]
push 0x46051c
push eax
call fcn.0040e692
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4399b5
lea eax, [ebp - 0x108]
push eax
call fcn.0040c8d3
or eax, 0xffffffff
jmp 0x439a44
lea eax, [ebp - 0x1440]
push eax
push esi
call fcn.00439a54
pop ecx
pop ecx
test eax, eax
jne 0x4399f3
lea eax, [ebp - 0x108]
push eax
push str.:7:LoadTillSheetFromProgress___s___FAILED:_fread___FAILED_to_read_the_till_sheet_struct.
call fcn.0040906e
push esi
call fcn.0040e507
lea eax, [ebp - 0x108]
push eax
call fcn.0040c8d3
add esp, 0x10
jmp 0x4398eb
push esi
push 1
lea eax, [ebp - 0x1444]
push 4
push eax
call fcn.00441a37
add esp, 0x10
cmp eax, 1
jae 0x439a12
mov dword [ebp - 0x1444], ebx
push esi
call fcn.0040e507
pop ecx
test edi, edi
je 0x439a32
push 0x1234
lea eax, [ebp - 0x1440]
push eax
push edi
call fcn.0043d690
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call fcn.0040c8d3
mov eax, dword [ebp - 0x1444]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret
Function at 0x439a54
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x439bd2
test ebx, ebx
je 0x439bd2
push esi
xor edi, edi
lea eax, [ebp - 4]
inc edi
push edi
push 4
push eax
call fcn.00441a37
add esp, 0x10
cmp eax, edi
jae 0x439a95
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x439a98
mov eax, dword [ebp - 4]
mov ecx, 0x1234
test eax, eax
je 0x439bd2
cmp eax, ecx
ja 0x439bb5
push ecx
push 0
push ebx
call fcn.0043dc10
push esi
push edi
push dword [ebp - 4]
push ebx
call fcn.00441a37
add esp, 0x1c
cmp eax, edi
jae 0x439ada
push edi
push esi
call fcn.0040e4b8
push eax
push str.:7:LoadTillSheetFromProgressRAW___s___FAILED:_fread___FAILED_to_read_the_till_sheet_struct.
jmp 0x439bca
mov eax, dword [ebx + 0x11b8]
test eax, eax
je 0x439b02
push edi
push eax
call fcn.00447314
push esi
push edi
push dword [ebx + 0x11b8]
mov dword [ebx + 0x11b0], eax
push eax
call fcn.00441a37
add esp, 0x18
mov eax, dword [ebx + 0x11c0]
test eax, eax
je 0x439b2a
push edi
push eax
call fcn.00447314
push esi
push edi
push dword [ebx + 0x11c0]
mov dword [ebx + 0x11bc], eax
push eax
call fcn.00441a37
add esp, 0x18
and dword [ebx + 0x104c], 0
cmp dword [ebx + 0x1040], 0
je 0x439bb1
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea esi, [ebp - 0x14]
push 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov word [ebp - 0x12], ax
pop eax
mov word [ebp - 0xe], ax
sub esp, 0x10
mov edi, esp
mov eax, 0x7d7
mov word [ebp - 0x14], ax
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebx + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00438259
add esp, 0x20
test eax, eax
je 0x439bae
xor ecx, ecx
lea eax, [ebx + 0x1040]
cmp dword [ebx + 0xb8], ecx
je 0x439b99
cmp word [ebx + 0x2a], cx
je 0x439b99
xor edi, edi
inc edi
jmp 0x439ba2
xor edi, edi
inc edi
mov dword [ebx + 0x1050], edi
cmp dword [ebx + 0x1050], ecx
jne 0x439bb1
mov dword [eax], ecx
jmp 0x439bb1
xor edi, edi
inc edi
mov eax, edi
jmp 0x439bd4
test eax, eax
je 0x439bd2
push ecx
push eax
push edi
push esi
call fcn.0040e4b8
pop ecx
pop ecx
push eax
push str.:7:LoadTillSheetFromProgressRAW___s___FAILED:_The_server_may_need_to_be_recompiled:_The_till_sheet_size_is_invalid:__ld__ld
call fcn.0040906e
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d034
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x43d069
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x43d066
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x43d072
add edx, 0x28
cmp edx, esi
jne 0x43d054
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x43d06f

Function at 0x43d4d1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43d510
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43d510
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d510
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43d510
cmp dword [ecx + 0x74], 0xe
jbe 0x43d510
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4422b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043c600
mov eax, dword [0x492840]
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.00450e99
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4422f5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x442451
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043c980
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 + 0x598720]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0045313b
mov ecx, dword [esi*4 + 0x598720]
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 0x44244a
cmp eax, dword [ecx + edi + 0x24]
jne 0x44244a
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 0x44244a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045313b
add esp, 0x14
test edx, edx
jl 0x44244a
jg 0x4423c0
test eax, eax
jb 0x44244a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44244a
jl 0x4423da
cmp dword [ebp - 0x1008], eax
ja 0x44244a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4423f8
test ebx, ebx
je 0x442431
cmp ecx, edi
jae 0x442431
mov al, byte [ecx]
cmp al, 0xd
jne 0x442412
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44241e
cmp byte [ecx + 1], 0xa
jne 0x44241e
inc ecx
jmp 0x44241e
movzx eax, al
movsx eax, byte [eax + 0x492a90]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4423f8
cmp edx, ebx
jne 0x4423f8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44244f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret
Function at 0x4525d3
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 + 0x598720]
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 0x452613
cmp byte [ebx], 0xa
jne 0x452613
or byte [edi + eax + 0x28], 4
jmp 0x452618
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 0x452717
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4526fa
inc eax
cmp dl, 0xd
je 0x452644
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x45266a
cmp eax, ecx
jae 0x452678
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 0x45262c
jmp 0x452717
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 0x4526f5
cmp dword [ebp - 0x10], 0
je 0x4526f5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x598720]
test byte [eax + edi + 0x28], 0x48
je 0x4526cf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4526ba
mov byte [esi], dl
jmp 0x4526cb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x598720]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x452717
cmp byte [ebp - 1], 0xa
jne 0x4526de
cmp esi, ebx
jne 0x4526de
mov byte [esi], 0xa
jmp 0x452716
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00453159
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x452717
mov byte [esi], 0xd
jmp 0x452716
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x598720]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x452714
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x452717
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x452720
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 + 0x598720]
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 0x452766
cmp word [ebx], dx
jne 0x452766
or byte [eax + edi + 0x28], 4
jmp 0x45276b
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 0x4528ce
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 0x4528ae
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4527ac
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4527e2
cmp eax, edx
jae 0x4527f0
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 0x452787
jmp 0x4528ce
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 0x4528a9
cmp dword [ebp - 0x18], 0
je 0x4528a9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x598720]
test byte [eax + edi + 0x28], 0x48
je 0x45287f
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 0x452843
mov word [esi], cx
jmp 0x45287a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x598720]
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 + 0x598720]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x598720]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4528ce
pop eax
cmp word [ebp - 4], ax
jne 0x45288f
cmp esi, ebx
jne 0x45288f
mov word [esi], ax
jmp 0x4528cb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00453159
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4528ce
push 0xd
pop eax
jmp 0x45288a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x598720]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4528c8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4528ce
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 0x455945
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47cd28
push 0x47cd20
push str.FlsAlloc
push 0x1f
call fcn.00455804
mov esi, eax
add esp, 0x10
test esi, esi
je 0x455979
push dword [ebp + 8]
mov ecx, esi
call dword [0x460450]
call esi
jmp 0x45597f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4559c3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47cd38
push 0x47cd30
push str.FlsGetValue
push 0x21
call fcn.00455804
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4559fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x460450]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x455a02
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47cd40
push 0x47cd38
push str.FlsSetValue
push 0x22
call fcn.00455804
mov esi, eax
add esp, 0x10
test esi, esi
je 0x455a3c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x460450]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x458e6f
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 0x458f0c
push ebx
push esi
call fcn.00458e38
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.00455342
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x458eb9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x458f0b
push edi
push eax
call fcn.00453318
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x458ed9
call fcn.004532de
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x458f0a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00455342
add esp, 0x20
test eax, eax
jne 0x458ef8
push edi
call fcn.004532de
jmp 0x458f00
push ebx
call fcn.004532de
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 0x45ee87
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.0045ee03
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45eff6
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45eff6
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45efab
jg 0x45eee3
test eax, eax
je 0x45efa1
push 1
push 0x1000
call fcn.00454537
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45ef06
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x45ef98
push 0x8000
push ebx
call fcn.004501c2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x45ef2f
jg 0x45ef2a
cmp ecx, 0x1000
jb 0x45ef2f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004517aa
add esp, 0x10
cmp eax, 0xffffffff
je 0x45ef74
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 0x45ef2a
jl 0x45ef5b
test ecx, ecx
jne 0x45ef1c
push dword [ebp - 0xc]
push ebx
call fcn.004501c2
push esi
call fcn.004532de
add esp, 0xc
xor ebx, ebx
jmp 0x45f004
cmp byte [edi + 0x24], 0
je 0x45ef8b
cmp dword [edi + 0x20], 5
jne 0x45ef8b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45ef96
mov ebx, dword [edi + 0x18]
jmp 0x45ef98
xor ebx, ebx
push esi
call fcn.004532de
pop ecx
jmp 0x45f004
test ecx, ecx
jg 0x45ef6d
jl 0x45efab
test eax, eax
jae 0x45ef6d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00453159
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45efcb
cmp byte [edi + 0x1c], 0
je 0x45ef6d
jmp 0x45effc
push ebx
call fcn.00459663
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45ef6d
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 0x45f004
cmp byte [edi + 0x1c], 0
je 0x45f001
mov ebx, dword [edi + 0x18]
jmp 0x45f004
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00453159
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45f4d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45f4fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45f4fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403b0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x428020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ba4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b84
xor eax, eax
push ebp
push 0x403b7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403bc0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x428020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x428020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404850
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42a04c], 0
je 0x4048b1
cmp word [0x42a220], 0xd7b2
jne 0x404879
cmp dword [0x42a228], 0
jbe 0x404879
mov eax, 0x42a21c
call dword [0x42a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4048d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42802c], 0
jne 0x4048cd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret