joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100803b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100925e0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 1
lea ecx, [eax + 0x1a]
call fcn.100816f0
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test al, al
je 0x10080507
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.1000cc70
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, edi
je 0x1008047f
cmp dword [ebp - 0x18], 8
jb 0x10080462
push dword [ebp - 0x2c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.10004a60
mov byte [ebp - 4], 1
cmp dword [ebp - 0x60], 8
jb 0x10080491
push dword [ebp - 0x74]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
lea edx, [eax + 0x10]
call fcn.1000ac50
push ebx
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.1000b150
add esp, 4
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10014eb0
test al, al
je 0x100804e1
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 8
jb 0x100804f3
push dword [ebp - 0x5c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x30], 8
jb 0x10080519
push dword [ebp - 0x44]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x10080542
push dword [ebp - 0x2c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10081b94
mov esp, ebp
pop ebp
ret 4
Function at 0x100816f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, edx
push 0x40e
push eax
mov word [ebp - 0x414], ax
mov esi, ecx
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1008176d
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1008177f
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x1008176d
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10081b94
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x414], 0
jne 0x1008178d
xor ecx, ecx
jmp 0x100817a5
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10081796
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.10003000
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x100817c5
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10081b94
mov esp, ebp
pop ebp
ret
Function at 0x407cc9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x4010a4
push dword [ebp + 8]
call fcn.0040b804
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x407cea
push 6
pop eax
jmp 0x407d0b
push esi
push 1
lea eax, [ebp - 0x40]
push 0x40
push eax
call fcn.0040b9f4
push esi
call fcn.0040b71d
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
xor eax, eax
pop esi
leave
ret

Function at 0x407e0b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00409470
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], esi
push edi
push eax
call fcn.00409470
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407e55
xor al, al
jmp 0x407e67
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x407e8a
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov eax, 0x41ce55
call fcn.004082c4
mov eax, 0x112c
call fcn.00408310
push edi
push 0x4010a4
push dword [ebp + 8]
call fcn.0040b804
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x407ebc
push 6
pop eax
jmp 0x40807c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x407ed1
push ebx
push dword [ebp + 0x14]
push edi
call fcn.0040be18
add esp, 0xc
push esi
push edi
push 1
push 4
pop esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040b9f4
add esp, 0x10
cmp dword [ebp - 0x10], 0x726f6857
jne 0x407f06
push edi
push 1
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040b9f4
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x407f14
xor esi, esi
inc esi
push edi
call fcn.0040b71d
pop ecx
mov eax, esi
jmp 0x40807a
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00407b74
mov esi, dword [ebp - 0x2c]
mov eax, 0x108
push edi
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push esi
mov dword [ebp - 0x20], esi
call fcn.0040b9f4
mov eax, dword [ebp - 0x28]
mov ecx, 0x108
sub eax, esi
mov dword [ebp - 0x1c], ebx
cdq
add esp, 0x10
idiv ecx
mov dword [ebp - 0x34], eax
test eax, eax
je 0x408069
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x407f77
mov eax, dword [eax]
test eax, eax
je 0x407f77
push dword [esi + 0x104]
push esi
call eax
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x1138]
push eax
call fcn.00407e6b
lea eax, [ebp - 0x1138]
push esi
push eax
call fcn.00407dd1
lea eax, [ebp - 0x1138]
push 0x4010a0
push eax
call fcn.0040b804
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
je 0x408089
mov ecx, dword [esi + 0x104]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], ebx
test ecx, ecx
jle 0x40801d
mov ebx, ecx
mov eax, 0x1000
mov esi, ebx
cmp ebx, eax
push edi
cmova esi, eax
lea eax, [ebp - 0x1138]
push 1
push esi
push eax
call fcn.0040b9f4
push dword [ebp - 0x18]
lea eax, [ebp - 0x1138]
push 1
push esi
push eax
call fcn.0040c117
mov ecx, dword [ebp - 0x14]
add esp, 0x20
mov eax, dword [ebp + 0x10]
add ecx, esi
sub ebx, esi
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x408011
mov eax, dword [eax + 4]
test eax, eax
je 0x408011
push ecx
call eax
pop ecx
test ebx, ebx
jg 0x407fc4
mov esi, dword [ebp - 0x20]
xor ebx, ebx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040b71d
pop ecx
lea eax, [ebp - 0x138]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x138]
push esi
push eax
call fcn.0040b510
push eax
call fcn.00407e0b
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
dec dword [ebp - 0x10]
mov eax, 0x108
inc ecx
add esi, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], esi
cmp ecx, dword [ebp - 0x34]
jb 0x407f5f
push edi
call fcn.0040b71d
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00407d95
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
push edi
call fcn.0040b71d
pop ecx
push 5
pop ebx
jmp 0x408070
Function at 0x4080bb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x214]
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00407cc9
and dword [ebp - 8], 0
mov esi, 0x41e9a8
pop ecx
pop ecx
push esi
push edi
mov dword [ebp - 0xc], 0x4080a3
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0040b500
lea eax, [ebp - 0x110]
push eax
call fcn.0040c160
add esp, 0xc
cmp byte [ebp + eax - 0x111], 0x5c
pop edi
pop esi
je 0x408140
lea eax, [ebp - 0x110]
push 0x4010cc
push eax
call fcn.0040b510
pop ecx
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00407e8a
add esp, 0x10
test eax, eax
je 0x408174
push dword [eax*4 + 0x41e988]
push 0x4010d0
call fcn.004081a3
pop ecx
pop ecx
xor eax, eax
leave
ret 0x10

Function at 0x408a80
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408abf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408abf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408abf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408abf
cmp dword [ecx + 0x74], 0xe
jbe 0x408abf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x410582
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 + 0x41f030]
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 0x4105c2
cmp byte [ebx], 0xa
jne 0x4105c2
or byte [edi + eax + 0x28], 4
jmp 0x4105c7
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 0x4106c6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4106a9
inc eax
cmp dl, 0xd
je 0x4105f3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x410619
cmp eax, ecx
jae 0x410627
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 0x4105db
jmp 0x4106c6
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 0x4106a4
cmp dword [ebp - 0x10], 0
je 0x4106a4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41f030]
test byte [eax + edi + 0x28], 0x48
je 0x41067e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x410669
mov byte [esi], dl
jmp 0x41067a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41f030]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4106c6
cmp byte [ebp - 1], 0xa
jne 0x41068d
cmp esi, ebx
jne 0x41068d
mov byte [esi], 0xa
jmp 0x4106c5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004112a2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4106c6
mov byte [esi], 0xd
jmp 0x4106c5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41f030]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4106c3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4106c6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4106cf
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 + 0x41f030]
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 0x410715
cmp word [ebx], dx
jne 0x410715
or byte [eax + edi + 0x28], 4
jmp 0x41071a
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 0x41087d
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 0x41085d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41075b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x410791
cmp eax, edx
jae 0x41079f
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 0x410736
jmp 0x41087d
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 0x410858
cmp dword [ebp - 0x18], 0
je 0x410858
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41f030]
test byte [eax + edi + 0x28], 0x48
je 0x41082e
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 0x4107f2
mov word [esi], cx
jmp 0x410829
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41f030]
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 + 0x41f030]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41f030]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41087d
pop eax
cmp word [ebp - 4], ax
jne 0x41083e
cmp esi, ebx
jne 0x41083e
mov word [esi], ax
jmp 0x41087a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004112a2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41087d
push 0xd
pop eax
jmp 0x410839
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41f030]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x410877
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41087d
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 0x41166c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408310
mov eax, dword [0x41e014]
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.0040fa85
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4116ae
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41180a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ca40
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 + 0x41f030]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00411284
mov ecx, dword [esi*4 + 0x41f030]
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 0x411803
cmp eax, dword [ecx + edi + 0x24]
jne 0x411803
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 0x411803
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411284
add esp, 0x14
test edx, edx
jl 0x411803
jg 0x411779
test eax, eax
jb 0x411803
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411803
jl 0x411793
cmp dword [ebp - 0x1008], eax
ja 0x411803
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4117b1
test ebx, ebx
je 0x4117ea
cmp ecx, edi
jae 0x4117ea
mov al, byte [ecx]
cmp al, 0xd
jne 0x4117cb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4117d7
cmp byte [ecx + 1], 0xa
jne 0x4117d7
inc ecx
jmp 0x4117d7
movzx eax, al
movsx eax, byte [eax + 0x41e1c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4117b1
cmp edx, ebx
jne 0x4117b1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411808
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408db5
leave
ret
Function at 0x412b44
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x402a38
push 0x402a30
push 0x401b94
push 0x1f
call fcn.00412a60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412b78
push dword [ebp + 8]
mov ecx, esi
call dword [0x420120]
call esi
jmp 0x412b7e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412bc2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x402a48
push 0x402a40
push 0x401bb8
push 0x21
call fcn.00412a60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412bf9
push dword [ebp + 8]
mov ecx, esi
call dword [0x420120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412c01
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x402a50
push 0x402a48
push 0x401bcc
push 0x22
call fcn.00412a60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412c3b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x420120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x415565
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 0x415602
push ebx
push esi
call fcn.0041552e
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.004154c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4155af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415601
push edi
push eax
call fcn.00412e11
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4155cf
call fcn.0040fa4b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415600
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004154c2
add esp, 0x20
test eax, eax
jne 0x4155ee
push edi
call fcn.0040fa4b
jmp 0x4155f6
push ebx
call fcn.0040fa4b
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 0x41a2b5
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.0041a231
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41a424
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41a424
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41a3d9
jg 0x41a311
test eax, eax
je 0x41a3cf
push 1
push 0x1000
call fcn.004128ea
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41a334
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a3c6
push 0x8000
push ebx
call fcn.0040eb7a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41a35d
jg 0x41a358
cmp ecx, 0x1000
jb 0x41a35d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041234f
add esp, 0x10
cmp eax, 0xffffffff
je 0x41a3a2
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 0x41a358
jl 0x41a389
test ecx, ecx
jne 0x41a34a
push dword [ebp - 0xc]
push ebx
call fcn.0040eb7a
push esi
call fcn.0040fa4b
add esp, 0xc
xor ebx, ebx
jmp 0x41a432
cmp byte [edi + 0x24], 0
je 0x41a3b9
cmp dword [edi + 0x20], 5
jne 0x41a3b9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41a3c4
mov ebx, dword [edi + 0x18]
jmp 0x41a3c6
xor ebx, ebx
push esi
call fcn.0040fa4b
pop ecx
jmp 0x41a432
test ecx, ecx
jg 0x41a39b
jl 0x41a3d9
test eax, eax
jae 0x41a39b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004112a2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41a3f9
cmp byte [edi + 0x1c], 0
je 0x41a39b
jmp 0x41a42a
push ebx
call fcn.00415a1b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41a39b
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 0x41a432
cmp byte [edi + 0x1c], 0
je 0x41a42f
mov ebx, dword [edi + 0x18]
jmp 0x41a432
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004112a2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c860
Capabilities:
Parse pe header

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