joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40148c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test esi, esi
je 0x4014b0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4014b0
test al, 0x10
jne 0x4014b0
push esi
call fcn.0040145f
test al, al
push esi
jne 0x4014b3
call fcn.00401472
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
ret

Function at 0x4016b4
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x114
lea ebp, [esp - 4]
mov eax, dword [0x412030]
xor eax, ebp
mov dword [ebp + 0x114], eax
push 0x20
mov eax, 0x40de54
call fcn.0040cdcf
lea eax, [edi + 0x1048]
push 7
xor ebx, ebx
pop ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov dword [ebp - 0x2c], edi
mov word [eax + 4], bx
lea eax, [edi + 0x1064]
mov dword [ebp - 4], ebx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
lea eax, [edi + 0x1080]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
lea eax, [edi + 0x10a0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [edi + 0x10b0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov esi, 0x410
push esi
mov byte [ebp - 4], 4
push ebx
push edi
mov dword [edi + 0x103c], ebx
mov dword [edi + 0x1040], ebx
mov dword [edi + 0x1044], ebx
call fcn.004060c0
push esi
lea eax, [edi + 0x410]
push ebx
push eax
call fcn.004060c0
push 0x400
lea eax, [edi + 0x820]
push ebx
push eax
call fcn.004060c0
push esi
lea eax, [edi + 0xc20]
push ebx
push eax
call fcn.004060c0
push 0x110
lea eax, [ebp + 4]
push ebx
push eax
mov byte [edi + 0x1030], bl
mov byte [edi + 0x1031], bl
mov dword [edi + 0x1034], ebx
mov byte [edi + 0x1032], bl
mov byte [edi + 0x1038], 1
mov byte [edi + 0x10c0], bl
mov byte [edi + 0x109c], bl
mov dword [ebp], 0x114
call fcn.004060c0
add esp, 0x3c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je 0x4017e1
cmp dword [ebp + 4], 6
jb 0x4017e1
mov byte [edi + 0x1032], 1
mov eax, str._nNwmteRQ
lea esi, [ebp - 0x28]
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x24], bx
call fcn.00403698
mov eax, esi
push eax
lea esi, [edi + 0x10a0]
mov byte [ebp - 4], 5
call fcn.00403373
push ebx
push 1
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00403704
mov eax, 0x40fbf8
lea esi, [ebp - 0x28]
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x24], bx
call fcn.00403698
mov eax, esi
push eax
lea esi, [edi + 0x10a0]
mov byte [ebp - 4], 6
call fcn.00403373
push ebx
push 1
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00403704
mov ebx, edi
call fcn.0040264e
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x114]
xor ecx, ebp
call fcn.004058de
add ebp, 0x118
leave
ret
Function at 0x40264e
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x412030]
xor eax, esp
mov dword [esp + 0x42c], eax
push esi
push edi
lea esi, [ebx + 0xc20]
push esi
mov byte [ebx + 0x10c0], 0
call fcn.004059a0
test eax, eax
pop ecx
jbe 0x4027c1
lea eax, [ebx + 0x10b0]
push eax
push esi
call fcn.004027d5
and word [esp + 0x220], 0
mov esi, 0x208
push esi
lea eax, [esp + 0x226]
push 0
push eax
call fcn.004060c0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x224]
mov edi, 0x104
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor eax, eax
push esi
push eax
mov word [esp + 0x42e], ax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.004060c0
mov dword [esp + 0x18], edi
lea esi, [ebx + 0x1044]
xor edi, edi
add esp, 0xc
cmp dword [esi], edi
jne 0x40270b
push str.AdvApi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
push str.GetUserNameW
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x402728
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
call eax
lea esi, [ebx + 0x10b0]
mov eax, esi
mov word [esp + 0x216], di
call fcn.004033d1
test eax, eax
je 0x40278b
push edi
call fcn.004033e9
mov edi, eax
cmp byte [edi + 0x69c], 1
jne 0x40277d
lea eax, [esp + 0x220]
push eax
push edi
call fcn.0040669b
test eax, eax
pop ecx
pop ecx
jne 0x40277d
lea eax, [esp + 0x10]
push eax
add edi, 0x280
push edi
call fcn.0040669b
test eax, eax
pop ecx
pop ecx
je 0x40278b
mov eax, esi
call fcn.0040340b
mov byte [ebx + 0x10c0], 1
mov eax, esi
call fcn.004033d1
test eax, eax
jne 0x4027c1
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004059a0
pop ecx
inc eax
push eax
lea eax, [esp + 0x228]
push eax
push 0
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.00402451
mov byte [ebx + 0x10c0], 1
mov ecx, dword [esp + 0x434]
pop edi
pop esi
xor ecx, esp
call fcn.004058de
mov esp, ebp
pop ebp
ret
Function at 0x4027d5
Capabilities:
Read file on windows

Disassembly:
push 0x704
mov eax, 0x40dde0
call fcn.0040cdcf
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40299c
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
je 0x40299c
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.004023ca
test al, al
jne 0x40284d
xor edi, edi
mov dword [ebp - 0x24], ebx
jmp 0x402850
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
cmp eax, ebx
ja 0x4028a6
jb 0x402869
cmp ecx, 0xffffe
ja 0x4028a6
push edi
lea eax, [ebp - 0x1c]
call fcn.0040345c
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea esi, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.004034ff
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp eax, dword [ebp - 0x24]
ja 0x4028a6
jb 0x40289b
cmp dword [ebp + 8], edi
jae 0x4028a6
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
call fcn.0040345c
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x402994
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
je 0x402994
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
lea esi, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00404b1a
cmp dword [ebp - 0x18], ebx
jne 0x4028e2
xor edi, edi
jmp 0x4028e8
mov edi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x18]
lea esi, [ebp - 0x1c]
call fcn.004034ff
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x38]
mov edx, edi
call fcn.00404bae
test al, al
je 0x40298c
cmp dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x30]
jne 0x402913
xor eax, eax
jmp 0x402918
mov eax, ecx
sub eax, dword [ebp - 0x34]
mov esi, 0x69d
xor edx, edx
mov edi, esi
div edi
test edx, edx
jne 0x40298c
cmp dword [ebp - 0x34], ebx
jne 0x402930
xor ecx, ecx
jmp 0x402933
sub ecx, dword [ebp - 0x34]
xor edx, edx
mov eax, ecx
div esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40298c
lea esi, [ebp - 0x70d]
call fcn.0040165c
mov edx, dword [ebp + 0xc]
sub esp, 0x6a0
mov esi, eax
mov edi, esp
mov ecx, 0x1a7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004037fd
imul esi, esi, 0x69d
push esi
lea esi, [ebp - 0x38]
call fcn.004034ff
mov esi, dword [ebp + 0xc]
push eax
push ebx
call fcn.004033e9
push eax
call fcn.00406140
add esp, 0xc
lea esi, [ebp - 0x38]
call fcn.00403441
lea esi, [ebp - 0x1c]
call fcn.00403441
call fcn.0040cea7
ret 8
Function at 0x404e2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x404e8f
cmp dword [ebp + 8], ebx
je 0x404e8f
cmp dword [ebp + 0xc], ebx
je 0x404e8f
lea eax, [ebp - 4]
push eax
push esi
push str.Path
push dword [ebp + 8]
mov word [esi], bx
push 0x80000002
mov dword [ebp - 4], 0x104
call fcn.00404d7f
add esp, 0x14
test al, al
je 0x404e8c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40fadc
push esi
call edi
push dword [ebp + 0xc]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x404e8f
mov word [esi], bx
pop ebx
leave
ret

Function at 0x404edb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x412030]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push edi
push 0x110
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004060c0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov edi, 0x104
mov ebx, 0x80000001
je 0x404f59
cmp dword [ebp - 0x74], 6
jb 0x404f59
lea eax, [ebp - 0x80]
push eax
push esi
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push ebx
mov dword [ebp - 0x80], edi
call fcn.00404d7f
add esp, 0x14
test al, al
je 0x404f59
cmp word [esi], 0
je 0x404f59
mov al, 1
jmp 0x404fa3
lea eax, [ebp - 0x7c]
push eax
push esi
push 0
push str.http_shellopencommand
push 0x80000000
mov dword [ebp - 0x7c], edi
call fcn.00404d7f
add esp, 0x14
test al, al
je 0x404f7f
cmp word [esi], 0
jne 0x404f55
lea eax, [ebp - 0x7c]
push eax
push esi
push 0
push str.SoftwareClasses.html
push ebx
mov dword [ebp - 0x7c], edi
call fcn.00404d7f
add esp, 0x14
test al, al
je 0x404fa1
cmp word [esi], 0
jne 0x404f55
xor al, al
mov ecx, dword [ebp + 0x9c]
pop edi
xor ecx, ebp
pop ebx
call fcn.004058de
add ebp, 0xa0
leave
ret
Function at 0x40522a
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x27d0]
mov eax, 0x2850
call fcn.0040c580
mov eax, dword [0x412030]
xor eax, ebp
mov dword [ebp + 0x27cc], eax
push esi
push edi
xor esi, esi
push 0x1ffe
lea eax, [ebp + 0x5c6]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x70], esi
call fcn.004060c0
add esp, 0xc
cmp edi, esi
mov word [ebp + 0x5c4], 0x22
je 0x4053df
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffa
jge 0x4053df
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x5c4]
push eax
call edi
push 0x40fd64
lea eax, [ebp + 0x5c4]
push eax
call edi
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
mov dword [ebp - 0x80], eax
je 0x4053df
push str.ShellExecuteW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [ebp - 0x74], eax
je 0x4053df
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00404fba
pop ecx
mov dword [ebp - 0x78], esi
lea ebx, [ebp - 0x6c]
mov edi, str.open
cmp word [ebx], si
je 0x405305
push 1
push esi
lea eax, [ebp + 0x5c4]
push eax
push ebx
push edi
push esi
call dword [ebp - 0x74]
cmp eax, 0x20
ja 0x405316
inc dword [ebp - 0x78]
add ebx, 0x210
cmp dword [ebp - 0x78], 3
jl 0x4052eb
jmp 0x40533d
mov eax, dword [ebp - 0x78]
imul eax, eax, 0x210
cmp dword [ebp + eax + 0x19c], esi
mov eax, dword [ebp + eax + 0x1a0]
jne 0x405332
add eax, 0x10
cmp eax, esi
mov dword [ebp - 0x70], eax
jne 0x4053d0
push 1
push esi
push esi
lea eax, [ebp + 0x5c4]
push eax
push edi
push esi
call dword [ebp - 0x74]
cmp eax, 0x20
ja 0x4053c9
mov dword [ebp - 0x7c], str._programfiles_x86__Internet_Exploreriexplore.exe
mov dword [ebp - 0x78], str._programfiles_Internet_Exploreriexplore.exe
xor ebx, ebx
push 0x206
lea eax, [ebp + 0x25c6]
push esi
push eax
mov word [ebp + 0x25c4], si
call fcn.004060c0
add esp, 0xc
push 0x103
lea eax, [ebp + 0x25c4]
push eax
push dword [ebp + ebx*4 - 0x7c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x25c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4053c1
push 1
push esi
lea eax, [ebp + 0x5c4]
push eax
lea eax, [ebp + 0x25c4]
push eax
push edi
push esi
call dword [ebp - 0x74]
cmp eax, 0x20
ja 0x4053c9
inc ebx
cmp ebx, 2
jb 0x405362
jmp 0x4053d0
mov dword [ebp - 0x70], 0x10
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x70]
pop ebx
jmp 0x4053e1
xor eax, eax
mov ecx, dword [ebp + 0x27cc]
pop edi
xor ecx, ebp
pop esi
call fcn.004058de
add ebp, 0x27d0
leave
ret
Function at 0x4058de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412030]
jne 0x4058e8
repz ret
jmp fcn.00406903

Function at 0x4076a1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x412048]
je 0x4076bc
inc edi
cmp edi, 0x17
jb 0x4076ad
cmp edi, 0x17
jae 0x40783c
push ebp
push 3
call fcn.0040afd0
cmp eax, 1
pop ecx
je 0x407808
push 3
call fcn.0040afd0
test eax, eax
pop ecx
jne 0x4076f0
cmp dword [section..data], 1
je 0x407808
cmp ebx, 0xfc
je 0x40783b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x413180
push ebp
call fcn.00408317
add esp, 0xc
test eax, eax
je 0x407726
push esi
push esi
push esi
push esi
push esi
call fcn.00405de5
add esp, 0x14
push 0x104
mov esi, 0x413199
push esi
push 0
mov byte [0x41329d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40776a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00408317
add esp, 0xc
test eax, eax
je 0x40776a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405de5
add esp, 0x14
push esi
call fcn.00406730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4077af
push esi
call fcn.00406730
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x413494
push 0x40e804
sub ecx, eax
push ecx
push eax
call fcn.0040af1d
add esp, 0x14
test eax, eax
je 0x4077af
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405de5
add esp, 0x14
jmp 0x4077b1
xor esi, esi
push 0x40e800
push ebx
push ebp
call fcn.0040aeac
add esp, 0xc
test eax, eax
je 0x4077d1
push esi
push esi
push esi
push esi
push esi
call fcn.00405de5
add esp, 0x14
push dword [edi*8 + 0x41204c]
push ebx
push ebp
call fcn.0040aeac
add esp, 0xc
test eax, eax
je 0x4077f3
push esi
push esi
push esi
push esi
push esi
call fcn.00405de5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040acef
add esp, 0xc
jmp 0x40783b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40783b
cmp ebp, 0xffffffff
je 0x40783b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41204c]
push dword [esi]
call fcn.00406730
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40acef
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406ae1
xor ebx, ebx
cmp dword [0x413880], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40adc5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40aea5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40aea5
push eax
call fcn.00406a73
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413880], eax
call esi
push eax
call fcn.00406a73
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413884], eax
call esi
push eax
call fcn.00406a73
mov dword [0x413888], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004071e2
test eax, eax
pop ecx
pop ecx
je 0x40ad93
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405de5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40adc5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00406a73
cmp eax, ebx
pop ecx
mov dword [0x413890], eax
je 0x40adc5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406a73
pop ecx
mov dword [0x41388c], eax
mov eax, dword [0x41388c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40ae4a
cmp dword [0x413890], ecx
je 0x40ae4a
push eax
call fcn.00406aea
push dword [0x413890]
mov esi, eax
call fcn.00406aea
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40ae4a
cmp edi, ebx
je 0x40ae4a
call esi
cmp eax, ebx
je 0x40ae17
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ae17
test byte [ebp - 0x18], 1
jne 0x40ae4a
lea eax, [ebp - 0x10]
push eax
call fcn.00407219
test eax, eax
pop ecx
je 0x40ae32
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405de5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40ae41
or dword [ebp + 0x10], 0x200000
jmp 0x40ae85
or dword [ebp + 0x10], 0x40000
jmp 0x40ae85
mov eax, dword [0x413884]
cmp eax, dword [ebp - 8]
je 0x40ae85
push eax
call fcn.00406aea
cmp eax, ebx
pop ecx
je 0x40ae85
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40ae85
mov eax, dword [0x413888]
cmp eax, dword [ebp - 8]
je 0x40ae85
push eax
call fcn.00406aea
cmp eax, ebx
pop ecx
je 0x40ae85
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413880]
call fcn.00406aea
cmp eax, ebx
pop ecx
je 0x40aea5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aea7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4058d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x4058e4
pop dword [ebp - 0x14]
mov eax, 0xc6fd0a4b
add eax, 0x39434e99
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xae02458a
sub dword [ebp - 0x24], 0x5fb0003f
mov dword [ebp - 0x20], 0xacc9e1ff
add dword [ebp - 0x20], 0x85696a46
mov dword [ebp - 0x1c], 0xf2054706
add dword [ebp - 0x1c], 0x5a46fd28
mov dword [ebp - 0x18], 0xba1779e7
add dword [ebp - 0x18], 0x45e88619
lea eax, [ebp - 0x24]
push eax
mov eax, 0x6da83fdd
add eax, 0x92984127
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xa34c48c
add dword [ebp - 0x24], 0x6a3da4ca
mov dword [ebp - 0x20], 0x70dad8d0
sub dword [ebp - 0x20], 0x2f6e775b
mov dword [ebp - 0x1c], 0xda4429fe
add dword [ebp - 0x1c], 0x892b426e
mov dword [ebp - 0x18], 0x58b017be
sub dword [ebp - 0x18], 0x58b017be
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x52864122
add eax, 0xadba3fde
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3ad34
push 0
call eax
mov ecx, 0xe28190a5
add ecx, 0x1d7ec6cb
xor esi, esi
add esi, eax
mov edi, 0x4a57eb0a
add edi, 0xb5ed18f6
add edi, dword [ebp - 0x14]
mov edx, 0x1da5ab54
add dword [ebp - 8], esi
mov ebx, dword [edi]
add dword [ebp - 0xc], 0x8814dab2
sub ebx, edx
xor dword [ebp - 0xc], 0x126bae28
mov dword [esi], ebx
sub dword [ebp - 4], edx
add esi, 0xf75c5c9c
sub esi, 0xf75c5c98
add edi, 4
loop 0x405a02
add eax, 0xf8af0945
add eax, 0x752474e
mov ebx, eax
add eax, 5
mov ecx, 0x7c037253
add ecx, 0x843c8dad
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x43b631
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
mov esi, esi
sub ecx, 0xf55bf732
call fcn.0043b673
inc ecx
xor dword [eax], edx
and ecx, esi
add ecx, 0xa94cbcdf
mov ecx, ecx
add eax, 1
sub esp, 4
mov dword [esp], 0xfd50659d
pop ecx
cmp eax, edi
jne fcn.0043b631
sub ecx, ecx
and ecx, esi
ret
Function at 0x1000f2a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f2e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f2e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f2e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f2e2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f2e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10011f60
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 0x10011ffd
push ebx
push esi
call fcn.10011f29
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.10011ebd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011faa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011ffc
push edi
push eax
call fcn.10012f1b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011fca
call fcn.10010a04
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011ffb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011ebd
add esp, 0x20
test eax, eax
jne 0x10011fe9
push edi
call fcn.10010a04
jmp 0x10011ff1
push ebx
call fcn.10010a04
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 0x1001226a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10012186
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001229e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x100122a4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100122e8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10012186
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001231f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012327
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10012186
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012361
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]