joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41338e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
cmp eax, esi
jne 0x4133b8
mov dword [ebp - 0x48], esi
jmp 0x4133c7
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4133bb
sub eax, edx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x24]
call fcn.0040fffd
cmp dword [eax + 0x14], 8
jb 0x4133da
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push esi
push eax
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0x24]
mov dword [ebp - 0x48], eax
call fcn.0040bad4
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x413402
xor al, al
jmp 0x4134b0
cmp dword [ebp - 0x50], edi
je 0x4134ae
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004013b3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
pop ecx
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x413432
and dword [ebp - 0x54], edi
jmp 0x413441
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413435
sub eax, edx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x24]
call fcn.0040fffd
cmp dword [eax + 0x14], 8
jb 0x413454
mov eax, dword [eax]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push eax
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0x24]
call fcn.0040bad4
push dword [ebp - 0x44]
lea esi, [ebp - 0x24]
call fcn.0040beca
mov eax, esi
lea ecx, [ebp - 0x40]
call fcn.00411eea
mov edi, dword [ebp - 0x50]
mov esi, eax
call fcn.0040d417
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040d17d
push 1
xor edi, edi
lea esi, [ebp - 0x24]
call fcn.0040bad4
cmp dword [ebp - 0x44], edi
je 0x4134ae
push dword [ebp - 0x44]
call fcn.00404e46
pop ecx
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4

Function at 0x413596
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
jb 0x4135a9
mov ebx, dword [eax]
jmp 0x4135ab
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x41362e
push esi
call fcn.004013d6
mov edi, eax
pop ecx
test edi, edi
je 0x41362e
push esi
push 0
push edi
call fcn.00402394
add esp, 0xc
push edi
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x413627
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x640314
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x413627
cmp dword [ebp - 4], 0
je 0x413627
push 0x14
call fcn.004013b3
mov esi, eax
pop ecx
test esi, esi
je 0x41362e
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
call fcn.00413635
jmp 0x413630
push edi
call fcn.00404e46
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413708
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov ax, word [esi + 8]
push ebx
mov word [ebp - 0x14], ax
mov ax, word [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x12], ax
call edi
mov word [ebp - 0x10], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0xe], ax
mov ax, word [esi + 8]
mov word [ebp - 0xc], ax
mov ebx, 0x4e4
mov eax, ebx
mov word [ebp - 0xa], ax
call edi
mov word [ebp - 6], bx
mov word [ebp - 8], ax
xor edi, edi
mov ebx, 0x104
push dword [ebp - 0x228]
movzx ecx, word [ebp + edi*2 - 0x12]
movzx eax, word [ebp + edi*2 - 0x14]
push ecx
push eax
push str.StringFileInfo_04x_04x_ls
push ebx
lea eax, [ebp - 0x21c]
push ebx
push eax
add edi, 2
call fcn.00413801
mov eax, dword [esi + 4]
and dword [ebp - 0x220], 0
add esp, 0x1c
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4137d5
cmp dword [ebp - 0x220], 0
jne 0x4137ec
cmp edi, 8
jb 0x413777
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 8
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call fcn.0040beee
mov al, 1
jmp 0x4137dc
Function at 0x4145c8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x64045c
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
cmp eax, ebx
je 0x4147cc
push str.RtlHashUnicodeString
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6b6740], eax
cmp eax, ebx
je 0x4147cc
mov esi, 0x104
push esi
lea eax, [ebp - 0x214]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
cmp edi, ebx
je 0x4147cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4147cc
xor eax, eax
cmp edi, ebx
jbe 0x4147cc
lea ecx, [ebp + edi*2 - 0x216]
cmp word [ecx], 0x5c
je 0x41466a
inc eax
sub ecx, 2
cmp eax, edi
jb 0x414657
jmp 0x4147cc
push dword [ebp - 0x218]
sub edi, eax
xor eax, eax
mov word [ebp + edi*2 - 0x214], ax
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.004147db
add esp, 0xc
push 0x6403a4
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.004147db
add esp, 0xc
push str.khtn.bin
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.004147db
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 5
push 0x80000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x218], esi
cmp esi, 0xffffffff
je 0x4147cc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 4
jbe 0x4147c5
test bl, 3
jne 0x4147c5
cmp ebx, 0x400
ja 0x4147c5
shr eax, 2
call fcn.004a7b1c
and dword [ebp - 0x21c], 0
push 0
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [0x6bc954]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4147ad
cmp dword [ebp - 0x21c], ebx
jne 0x4147ad
mov edx, dword [0x6bc958]
mov ecx, dword [0x6bc954]
sub edx, ecx
sar edx, 2
lea eax, [edx - 1]
cmp edx, eax
ja 0x41475c
push str.invalid_vector_T__subscript
call fcn.005f4032
mov edi, dword [ecx + eax*4]
call fcn.004a7b1c
mov eax, dword [0x6bc954]
mov ecx, dword [0x6bc958]
xor edx, edx
mov esi, eax
cmp eax, ecx
je 0x414780
add edx, dword [esi]
add esi, 4
cmp esi, ecx
jne 0x414777
cmp edi, edx
je 0x41479a
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004a7b97
push dword [ebp - 0x218]
jmp 0x4147c6
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004a7aac
jmp 0x4147cc
push dword [0x6bc958]
lea eax, [ebp - 0x220]
push dword [0x6bc954]
push eax
call fcn.004a7b97
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x414892
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00402394
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x248]
call fcn.0040beca
xor ebx, ebx
inc ebx
push ebx
push 0x6403a4
mov edi, esi
call fcn.00414a1c
cmp eax, 0xffffffff
jne 0x414920
push 0x63e360
lea esi, [ebp - 0x264]
call fcn.0040beca
jmp 0x414951
push eax
push 0
lea eax, [ebp - 0x248]
push eax
lea esi, [ebp - 0x280]
call fcn.0040c35b
mov eax, esi
push eax
lea esi, [ebp - 0x264]
call fcn.0040ba53
push ebx
xor edi, edi
lea esi, [ebp - 0x280]
call fcn.0040bad4
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x248]
call fcn.0040ba78
push ebx
xor edi, edi
lea esi, [ebp - 0x264]
call fcn.0040bad4
push str.User_Data_v3updateconfig_v3update.ini
lea edi, [ebp - 0x248]
lea eax, [ebp - 0x22c]
call fcn.00414a91
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
pop ecx
jae 0x41499d
lea eax, [ebp - 0x22c]
push eax
push 0
mov edi, str.flag
push edi
mov esi, str.updateflag
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
je 0x4149f1
cmp eax, 2
je 0x4149f1
and dword [ebp - 0x284], 0
push ebx
xor edi, edi
lea esi, [ebp - 0x22c]
call fcn.0040bad4
push ebx
lea esi, [ebp - 0x248]
call fcn.0040bad4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x284]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x414a06
lea eax, [ebp - 0x22c]
push eax
push 0x640574
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x284], ebx
jmp 0x4149c2
Function at 0x415fb8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415fee
push str.ReadFile__
push 0xfc
push str.QHImageHlp.c
xor edx, edx
call fcn.005757fa
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp esi, dword [ebp - 4]
je 0x416015
push 0x640810
push 0xfe
push str.QHImageHlp.c
mov edx, 1
call fcn.00575923
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x41635a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [ebp - 0x14]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edx, edx
test eax, eax
jne 0x4163a3
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
call fcn.005757fa
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
mov ecx, dword [esi + 0xb4]
sub ebx, edi
mov edi, dword [ebp - 0x10]
sbb edi, edx
sub ebx, 0x298
sbb edi, edx
xor eax, eax
cmp edi, eax
jl 0x416437
jg 0x4163c7
cmp ebx, ecx
jb 0x416437
mov esi, dword [esi]
push 0
push 0
push edi
push ebx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4163ff
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.005757fa
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, 0x298
call fcn.00415fb8
test eax, eax
je 0x4163f6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41641f
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416443
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416443
xor edx, edx
mov word [eax], dx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416574
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
push edi
lea ecx, [ebp - 0x74]
push ecx
push eax
mov dword [ebp - 0x74], 0x6a09e667
mov dword [ebp - 0x70], 0xbb67ae85
mov dword [ebp - 0x6c], 0x3c6ef372
mov dword [ebp - 0x68], 0xa54ff53a
mov dword [ebp - 0x64], 0x510e527f
mov dword [ebp - 0x60], 0x9b05688c
mov dword [ebp - 0x5c], 0x1f83d9ab
mov dword [ebp - 0x58], 0x5be0cd19
call fcn.00416606
add esp, 8
test eax, eax
jne 0x4165e8
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edi, [ebp - 0x74]
call fcn.00416d1c
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
Function at 0x4167ad
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [eax + 0xccc]
mov eax, dword [eax]
push edi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4167f5
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
xor edx, edx
call fcn.005757fa
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor ebx, ebx
add edx, 8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
lea esp, [esp]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jne 0x41681c
mov eax, dword [edi]
mov ecx, dword [edi + 4]
jmp 0x416822
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
sub eax, ebx
sbb ecx, dword [ebp - 0x1c]
mov edi, eax
shrd edi, ecx, 0xf
shr ecx, 0xf
and eax, 0x7fff
mov dword [ebp - 4], edi
mov edi, eax
jne 0x416843
mov edi, 0x8000
jmp 0x416846
inc dword [ebp - 4]
cmp dword [ebp - 4], 0
jbe 0x4168b6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push 0
push 0
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x416931
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416953
cmp edi, dword [ebp - 0x18]
jne 0x416975
mov edx, 0x573464
test edx, edx
je 0x4168a3
push edi
push esi
mov esi, dword [ebp + 0x10]
call fcn.004169cb
mov esi, dword [ebp - 0x14]
add esp, 8
add ebx, edi
adc dword [ebp - 0x1c], 0
dec dword [ebp - 4]
mov edi, 0x8000
jne 0x41684c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x416913
mov eax, dword [edx]
test eax, eax
je 0x4169bf
mov ecx, 0x573464
test ecx, ecx
je 0x416906
cmp dword [edx + 4], 0
je 0x416906
cmp eax, 0x8000
ja 0x41699a
push eax
push 0
push esi
call fcn.00402394
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add esp, 0xc
push eax
push esi
mov esi, dword [ebp + 0x10]
call fcn.004169cb
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add esp, 8
mov ebx, dword [edx]
xor eax, eax
add ebx, dword [edx - 8]
adc eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
inc eax
add edx, 0x18
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
cmp eax, dword [ebp + 0xc]
ja 0x4169bf
mov edi, dword [ebp + 0x14]
jmp 0x41680d
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.005757fa
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ReadFile__
push 0xfc
push str.QHImageHlp.c
xor edx, edx
call fcn.005757fa
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x640810
push 0xfe
mov edx, 1
push str.QHImageHlp.c
call fcn.00575923
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x640880
push 0x3d8
mov edx, 8
push str.QHImageHlp.c
call fcn.00575923
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4184fd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x418502
cmp dword [0x6d1fbc], 0
push esi
push edi
jne 0x418516
call fcn.004185a0
test eax, eax
je 0x41855b
mov eax, dword [0x6d1fbc]
cmp eax, 1
jne 0x418537
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41855b
jmp 0x41859d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41859d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41855f
xor eax, eax
jmp 0x41859d
mov eax, dword [esi]
push dword [0x6d1fbc]
call edi
mov edi, eax
test edi, edi
je 0x418581
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41859d
lea edi, [esi + 0xff0]
push esi
push dword [0x6d1fbc]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x418587
mov eax, esi
pop edi
pop esi
ret

Function at 0x418858
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x418897
xor al, al
jmp 0x4188e5
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x22c]
call fcn.0040beca
push str.First_Run
mov eax, esi
push eax
call fcn.0040d6fd
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x4188c7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete bl
push 1
xor edi, edi
lea esi, [ebp - 0x22c]
call fcn.0040bad4
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x41927d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [0x6b6b78], edi
je 0x419293
mov eax, 0x10dd
jmp 0x4192ed
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x6b6b78
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x41928c
push esi
mov esi, dword [0x6b6b6c]
mov dword [0x6b6b74], edi
mov dword [0x6b6b88], edi
mov dword [0x6b6b84], edi
mov dword [0x6b6b7c], edi
mov dword [0x6b6b80], edi
jmp 0x4192e6
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x4192d1
xor eax, eax
pop esi
pop edi
leave
ret

Function at 0x4192f0
Capabilities:
Suspend thread

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [0x6b6b7c]
test eax, eax
jne 0x419359
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
je 0x419357
push 8
call fcn.004013b3
mov esi, eax
pop ecx
test esi, esi
jne 0x41931b
push 8
pop edi
jmp 0x419336
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x419347
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00404e46
pop ecx
and dword [0x6b6b80], 0
mov dword [0x6b6b7c], edi
mov eax, edi
jmp 0x419359
mov eax, dword [0x6b6b84]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x6b6b84], esi
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x41935d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6b6b78], eax
je 0x419383
mov eax, 0x10dd
jmp 0x419536
mov eax, dword [0x6b6b7c]
cmp eax, ebx
jne 0x419536
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x41939f
push 6
pop eax
jmp 0x419536
mov esi, dword [ecx]
cmp esi, ebx
jne 0x4193b8
push 6
pop eax
mov dword [0x6b6b7c], eax
mov dword [0x6b6b80], ecx
jmp 0x419536
mov dword [ebp - 8], ebx
call fcn.0041953d
mov esi, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041953d
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x4193e5
cmp dword [0x6b6b74], ebx
jne 0x419503
jmp 0x4194ce
push 0x18
call fcn.004013b3
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x419400
mov dword [ebp - 4], 8
jmp 0x4194ce
mov eax, edi
call fcn.0041957f
mov ebx, eax
test ebx, ebx
je 0x4193f4
and dword [ebp - 4], 0
mov esi, edi
mov edx, dword [ebp - 4]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
lea edx, [edx + ebx]
push eax
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00419755
cmp dword [ebp - 0xc], 0
mov esi, eax
jne 0x41944a
mov ecx, dword [ebp - 0x14]
sub eax, edi
mov dword [ebp - 4], eax
call fcn.004198ab
test eax, eax
jne 0x41944a
cmp dword [ebp - 4], 5
jl 0x419413
mov edx, dword [ebp - 4]
cmp edx, 5
jge 0x419464
cmp dword [0x6b6b74], 0
mov dword [ebp - 4], 9
jne 0x4194d6
jmp 0x4194ce
cmp edx, 0x12
jbe 0x419472
mov dword [ebp - 4], 6
jmp 0x4194ce
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x1c], ecx
lea ecx, [edx + ebx]
lea eax, [edx + edi]
mov dword [ebx + 0x18], eax
lea esi, [ebx + 0x17]
lea edi, [ecx + 5]
mov byte [esi], dl
sub eax, edi
mov byte [ecx], 0xe9
mov dword [ecx + 1], eax
add ecx, 5
cmp ecx, esi
jae 0x4194ac
sub esi, ecx
push esi
push 0xcc
push ecx
call fcn.00402394
mov edx, dword [ebp - 4]
add esp, 0xc
mov esi, dword [ebp - 0x18]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x40
push edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41950e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [0x6b6b7c], eax
test ebx, ebx
je 0x4194f4
mov edx, ebx
and edx, 0xffff0000
push 8
xor eax, eax
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [edx + 8]
mov dword [ebx + 0x18], eax
mov dword [edx + 8], ebx
cmp dword [ebp - 8], 0
je 0x419503
push dword [ebp - 8]
call fcn.00404e46
pop ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
jmp 0x4193ad
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], esi
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x6b6b88]
mov dword [eax], ecx
mov dword [0x6b6b88], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8