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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
and dword [ebp - 0xc], esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
xor ebx, ebx
push edi
push 0
lea eax, [ebp - 4]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [ebp - 0xc]
add eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x414a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xea
jne 0x4149f2
xor esi, esi
jmp 0x414a08
cmp esi, 0x6d
je 0x414a6d
test esi, esi
jle 0x414a06
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414a4e
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x4149bc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x414acf
push 0
push eax
call fcn.00403a1a
mov dword [edi + 0xc], eax
test eax, eax
jne 0x414a7c
mov esi, 0x8007000e
push esi
push 0x323
push str.c:_agent_work138_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_allocate_data_for_message.
jmp 0x414a63
push esi
push 0x318
push str.c:_agent_work138_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_read_message_from_pipe.
push esi
call fcn.00440657
pop ecx
pop ecx
jmp 0x414acf
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x414a16
push 0
lea ecx, [ebp - 4]
push ecx
push dword [edi + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x414aaa
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414ab1
mov esi, 0x80004005
push esi
push 0x327
push str.c:_agent_work138_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_read_data_for_message.
jmp 0x414a63
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x414ae3
cmp dword [edi + 0xc], 0
je 0x414ae3
push dword [edi + 0xc]
call fcn.00403adf
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x414aec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004146bb
mov esi, eax
test esi, esi
jns 0x414b1e
push str.Failed_to_allocate_message_to_write.
jmp 0x414b7f
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x414b87
push 0
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
sub eax, edi
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414b4c
add edi, dword [ebp + 0x14]
cmp edi, dword [ebp - 4]
jb 0x414b26
jmp 0x414b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x414b63
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414b6a
mov esi, 0x80004005
push esi
push 0x2f0
push str.c:_agent_work138_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_write_message_type_to_pipe.
push esi
call fcn.00440657
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x414b95
push dword [ebp - 8]
call fcn.00403adf
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x4182a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x270], 0
lea eax, [ebp - 0x25c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x208
push 0
push eax
call fcn.0042f710
xor eax, eax
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x46bb70]
test eax, eax
jne 0x418468
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00440c8f
cmp dword [ebp - 0x270], 0
lea eax, [ebp - 0x25c]
je 0x4183a3
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x418364
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x418343
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41834a
mov esi, 0x80004005
push esi
push 0x460
push str.c:_agent_work138_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_get_windows_path_for_working_folder.
jmp 0x41847c
push edi
lea eax, [ebp - 0x25c]
push eax
call fcn.004034a9
mov esi, eax
test esi, esi
jns 0x418381
push str.Failed_to_ensure_windows_path_for_working_folder_ended_in_backslash.
jmp 0x41847c
push str.Temp_
push edi
lea eax, [ebp - 0x25c]
push eax
call fcn.004037c6
mov esi, eax
test esi, esi
jns 0x4183eb
push str.Failed_to_concat_Temp_directory_on_windows_path_for_working_folder.
jmp 0x41847c
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4183eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4183ca
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4183d1
mov esi, 0x80004005
push esi
push 0x46b
push str.c:_agent_work138_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x41847c
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, eax
or esi, 1
jge 0x418406
push str.Failed_to_create_working_folder_guid.
jmp 0x41847c
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x418439
mov esi, 0x8007000e
push esi
push 0x475
push str.c:_agent_work138_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_convert_working_folder_guid_into_string.
jmp 0x41847c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
push str._ls_ls_
push 0x46bb70
call fcn.0040204d
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x418463
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
jmp 0x41847c
mov eax, dword [0x46bb70]
push 0
push eax
push ebx
call fcn.004022c9
mov esi, eax
test esi, esi
jns 0x418484
push str.Failed_to_copy_working_folder_path.
push esi
call fcn.00440657
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de30
leave
ret 8
Function at 0x418dca
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov eax, 0x20000004
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
je 0x418e5c
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.004181fd
mov esi, eax
test esi, esi
jns 0x418e0d
push str.Failed_to_allocate_administrator_SID.
push esi
call fcn.00440657
mov edi, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x418e85
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x418e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x418e36
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x418e3d
mov esi, 0x80004005
push esi
push 0x601
push str.c:_agent_work138_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_initialize_ACL.
jmp 0x418e00
mov edi, dword [ebp - 4]
mov eax, 0x20000005
push 0x7d0
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push edi
push eax
push 1
push dword [ebp + 0xc]
call fcn.00445a5b
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x418e8f
push edi
call fcn.00403adf
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x419b24
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x250
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
call fcn.0042f710
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.0041a380
test eax, eax
js 0x419b85
push 7
push dword [ebp - 0x258]
call fcn.00403d89
cmp dword [ebp + 8], 0
jne 0x419c6c
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 0xc]
call fcn.004182a6
test eax, eax
js 0x419c6c
lea eax, [ebp - 0x260]
push eax
push 0x44b8e8
push dword [ebp - 0x258]
call fcn.00402e80
test eax, eax
js 0x419c6c
push esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419c6b
test byte [ebp - 0x254], 0x10
jne 0x419c52
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jbe 0x419c2a
push 0x2e
pop ecx
cmp cx, word [ebp + eax*2 - 0x22c]
jne 0x419c2a
movzx eax, word [ebp + eax*2 - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x419c52
push 0x72
pop ecx
cmp cx, ax
je 0x419c52
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.00402e80
test eax, eax
js 0x419c52
push dword [ebp - 0x25c]
call fcn.0044459d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419be4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0x25c], 0
je 0x419c80
push dword [ebp - 0x25c]
call fcn.0040278d
cmp dword [ebp - 0x260], 0
je 0x419c94
push dword [ebp - 0x260]
call fcn.0040278d
cmp dword [ebp - 0x258], 0
je 0x419ca8
push dword [ebp - 0x258]
call fcn.0040278d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042de30
leave
ret 8
Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call fcn.004038f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call fcn.004038f8
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4012e9
Capabilities:
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
xor esi, esi
mov byte [0x412d7a], 0
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 0x24], 0x14
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
mov dword [ebp - 0xc], eax
inc ebx
test dword [ebp - 0xc], ebx
je 0x401367
lea eax, [esi + 0x41]
push eax
lea eax, [ebp - 0x32c]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.SHELL32.dll_SHQueryRecycleBinW]
test eax, eax
js 0x401367
cmp dword [ebp - 0x14], 0
jl 0x401367
jg 0x401357
cmp dword [ebp - 0x18], 0
jbe 0x401367
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov byte [0x412d7a], 1
adc edi, dword [ebp - 0x1c]
add ebx, ebx
inc esi
cmp esi, 0x20
jl 0x401316
cmp byte [0x412d7a], 1
push str.MiniBin_6.6.0.0
mov esi, 0x4170a8
push esi
jae 0x4013c1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40c730
push esi
call edi
push 0x80
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
lea eax, [ebp - 0x124]
push eax
push esi
call edi
mov eax, dword [0x414d84]
jmp 0x401500
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40c730
push esi
call ebx
push 0x80
lea eax, [ebp - 0x124]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
lea eax, [ebp - 0x124]
push eax
push esi
call ebx
cmp byte [0x40ff67], 0
jne 0x4014fb
push 0x412d80
push 1
push str.MaxFillSizeMB
push str.History
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor esi, esi
mov ebx, eax
mov dword [0x417088], ebx
mov dword [0x41708c], esi
cmp esi, esi
ja 0x401443
jb 0x401434
cmp ebx, 1
jae 0x401443
xor ebx, ebx
inc ebx
mov dword [0x417088], ebx
mov dword [0x41708c], esi
mov eax, dword [ebp - 8]
push esi
shrd eax, edi, 0x14
push 0x64
shr edi, 0x14
push edi
push eax
mov dword [0x410970], eax
mov dword [0x410974], edi
call fcn.004029c0
push esi
push ebx
push edx
push eax
call fcn.00402950
and dword [ebp - 8], esi
mov dword [ebp - 4], edx
and dword [ebp - 4], 0x80000000
and edx, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
fild qword [ebp - 0x10]
fild qword [ebp - 8]
fchs
faddp st(1)
fadd qword [0x40c728]
fldz
fcomp st(1)
fnstsw ax
fld qword [0x40c718]
test ah, 5
jp 0x4014b9
fcom st(1)
fnstsw ax
test ah, 1
jne 0x4014b9
mov eax, dword [0x41036c]
fstp st(0)
fstp st(0)
jmp 0x401500
fcomp st(1)
fnstsw ax
fld qword [0x40c710]
test ah, 5
jp 0x4014dc
fcom st(1)
fnstsw ax
test ah, 1
jne 0x4014dc
mov eax, dword [0x40ff60]
fstp st(0)
fstp st(0)
jmp 0x401500
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4014f9
fcomp qword [0x40c708]
fnstsw ax
test ah, 0x41
jp 0x4014fb
mov eax, dword [0x412d7c]
jmp 0x401500
fstp st(0)
mov eax, dword [0x410368]
push 0x417090
push 1
mov dword [0x4170a4], eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401517
Capabilities:
Empty the recycle bin
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x40ff64], 1
push ebx
push esi
push edi
mov ebx, 0x412d80
mov edi, str.MaxFillSizeMB
mov esi, str.History
jae 0x4015a6
mov eax, dword [0x417088]
mov ecx, dword [0x41708c]
shld ecx, eax, 1
lea edx, [eax + eax]
add edx, dword [0x410970]
mov eax, ecx
adc eax, dword [0x410974]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
and dword [ebp - 4], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
push ecx
push ecx
fild qword [ebp - 0x10]
fild qword [ebp - 8]
fchs
faddp st(1)
fmul qword [str.UUUUUU]
fstp qword [esp]
call fcn.004027b0
pop ecx
pop ecx
call fcn.00402a36
cmp eax, 1
jae 0x40159a
xor eax, eax
inc eax
push ebx
push eax
push edi
push esi
call fcn.00401000
add esp, 0x10
push ebx
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
mov dword [0x417088], eax
xor ecx, ecx
xor eax, eax
pop esi
mov dword [0x41708c], ecx
pop ebx
cmp byte [0x40ff66], al
jne 0x4015cc
inc eax
cmp byte [0x40ff65], cl
jne 0x4015d7
or eax, 2
cmp byte [0x412d79], cl
jne 0x4015e2
or eax, 4
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
leave
ret
Function at 0x406fee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40fab0]
jne 0x406ff8
repz ret
jmp fcn.0040a655

Function at 0x40784c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40fab0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004049ba
and dword [ebp - 0x14], 0
cmp dword [0x417f78], 0
mov dword [ebp - 0x18], eax
jne 0x4078ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4079a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d9e4
push ebx
call edi
test eax, eax
je 0x4079a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x417f78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x417f7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x417f80], eax
call edi
push eax
call esi
mov dword [0x417f88], eax
test eax, eax
je 0x4078ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x417f84], eax
mov eax, dword [0x417f84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407958
cmp dword [0x417f88], ecx
je 0x407958
push eax
call esi
push dword [0x417f88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407958
test ebx, ebx
je 0x407958
call edi
test eax, eax
je 0x40794f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40794f
test byte [ebp - 8], 1
jne 0x407958
or dword [ebp + 0x10], 0x200000
jmp 0x40798b
mov eax, dword [0x417f7c]
cmp eax, dword [ebp - 0x18]
je 0x40798b
push eax
call esi
test eax, eax
je 0x40798b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40798b
mov eax, dword [0x417f80]
cmp eax, dword [ebp - 0x18]
je 0x40798b
push eax
call esi
test eax, eax
je 0x40798b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x417f78]
call esi
test eax, eax
je 0x4079a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4079a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fee
leave
ret
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401020
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401054
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40104c
lea ecx, [ecx]
cmp al, 0x22
je 0x401051
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401040
cmp byte [esi], 0x22
jne 0x40105e
inc esi
jmp 0x40105e
cmp al, 0x20
jbe 0x40105e
inc esi
cmp byte [esi], 0x20
ja 0x401058
mov al, byte [esi]
test al, al
je 0x401070
cmp al, 0x20
ja 0x401070
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401064
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
movzx eax, word [ebp - 0x14]
jne 0x401090
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4a20d9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a2107
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2125
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a203f
jmp 0x4a2125
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a2125
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a203f
test edi, edi
mov eax, edi
jne 0x4a210f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40147e
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xchg cl, dl
ror al, cl
xor al, cl
xchg cl, dl
xor al, ah
stosb byte es:[edi], al
inc dx
loop 0x401483
ret

Function at 0x401494
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xor al, ah
xchg cl, dl
xor al, cl
rol al, cl
xchg cl, dl
stosb byte es:[edi], al
inc dx
loop 0x401499
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x710c82
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x7109ec
add esi, 0x49903c66
dec eax
sub esi, 0xc4771524
call fcn.00710cc7
sub esp, 4
mov dword [esp], esi
mov eax, dword [esp]
add esp, 4
and eax, esi
or eax, eax
xor dword [ecx], ebx
add eax, eax
inc esi
inc ecx
mov esi, eax
dec esi
cmp ecx, edx
jne fcn.00710c82
sub esi, eax
add eax, esi
sub eax, 1
ret