joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e6b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457bb0]
cmp dword [eax + 0x30], 0
je 0x44e75e
cmp dword [ebx + 0x94], 0
jne 0x44e758
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e644
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e758
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44e71e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e758
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413748
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e72d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44f2c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44f2f5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f10
jmp 0x44f302
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e74
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450354
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450395
mov eax, esi
call fcn.00436a8c
test al, al
je 0x450395
mov eax, dword [ebx + 0x84]
call fcn.00436788
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450395
push 0
mov eax, dword [ebx + 0x84]
call fcn.00436788
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4041a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x4041eb
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x4041ba
jmp 0x4041eb
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x4041db
pop esi
pop ebp
ret

Function at 0x40424b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.TestBinarySearch.exe_gMozillaPoisonSize]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x404283
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x1c]
jb 0x4042ad
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x1c]
jb 0x4042ad
test edi, edi
je 0x40427a
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40427a
test edi, edi
je 0x4042b5
mov eax, edi
jmp 0x40427c
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40427c
int3

Function at 0x4042e4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonSize], eax
call fcn.0040424b
mov ecx, dword [sym.TestBinarySearch.exe_gMozillaPoisonSize]
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40431a
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4073cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.WSplashScreen.0
mov dword [esp + 0x14], 0
call fcn.004040f0
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x402779
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esi + 0x44]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [esi + 0x40]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [esi + 0x3c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [esi + 0x30]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [esi + 0x2c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [esi + 0x28]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [esi + 0x24]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
push esi
call dword [sym.imp.mfc120u.dll_Ordinal_1508]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x403a80
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x40c724]
push esi
push edi
test eax, eax
je 0x403a9b
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x40c724]
cmp dword [0x40c73c], 0
jne 0x403b2c
test eax, eax
jne 0x403ab5
call fcn.004037e0
test eax, eax
je 0x403b06
mov esi, dword [0x40c738]
mov edi, dword [0x40c014]
test esi, esi
jne 0x403afb
mov eax, dword [0x40c740]
test eax, eax
jne 0x403ae3
push dword [0x409298]
call dword [0x409294]
test eax, eax
je 0x403af1
mov dword [0x40c740], eax
push str.ActivateActCtx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x403b06
mov dword [0x40c738], esi
push dword [esp + 0xc]
push edi
call esi
test eax, eax
jne 0x403b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x403b22
cmp eax, 0x7e
je 0x403b22
cmp eax, 0x78
je 0x403b22
xor eax, eax
pop edi
pop esi
ret 4
mov dword [0x40c73c], 1
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x403d00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4074a8
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 8], edi
push 0x4093a0
lea ecx, [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
call dword [sym.imp.mfc120u.dll_Ordinal_286]
push 0x4093a0
lea ecx, [edi + 0xc]
mov dword [esp + 0x18], 0
call dword [sym.imp.mfc120u.dll_Ordinal_286]
push 0x4093a0
lea ecx, [edi + 0x10]
mov byte [esp + 0x18], 1
call dword [sym.imp.mfc120u.dll_Ordinal_286]
push 0x4093a0
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 2
call dword [sym.imp.mfc120u.dll_Ordinal_286]
lea ecx, [edi + 0x20]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call dword [sym.imp.mfc120u.dll_Ordinal_296]
lea ecx, [edi + 0x24]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
push 0x4093a0
lea ecx, [edi + 0x28]
mov byte [esp + 0x18], 5
call dword [sym.imp.mfc120u.dll_Ordinal_286]
push 0xf
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
mov dword [edi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [edi + 0x40], eax
mov eax, edi
mov dword [edi + 0x44], 0x8f562a
mov dword [edi + 0x48], 0x606060
mov byte [edi + 0x4c], 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret

Function at 0x403e10
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x403ea5
push dword [esp + 8]
lea ecx, [esi + 0x1c]
call fcn.00403eb0
cmp dword [esi + 0x34], 0
jne 0x403e61
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jne 0x403e3c
xor eax, eax
jmp 0x403e5a
push str.GetUILang
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403e5a
call eax
push dword [esi + 0x24]
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov dword [esi + 0x34], eax
test eax, eax
je 0x403ea5
lea ecx, [esi + 0x30]
call dword [sym.imp.mfc120u.dll_Ordinal_4280]
mov al, byte [esi + 0x68]
push 0
push 0
push 1
push 0
mov byte [esi + 8], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x403f80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x14]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret 4
Function at 0x4045e0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x40c918
push esi
call fcn.00403eb0
mov eax, dword [0x40c91c]
test eax, eax
cmove eax, dword [0x40c930]
cmp dword [0x40c8d8], 0
mov dword [0x40c91c], eax
je 0x40460e
xor eax, eax
pop esi
ret
push str.GetUILang
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40460a
push ebp
call eax
push str.crlctlintl.dll
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x3c]
push str.IsCurLangFarEast
push dword [esp + 0x10]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40464c
mov dword [0x40c7c8], eax
jmp 0x404653
call eax
mov dword [0x40c7c8], eax
sub esp, 8
mov ecx, ebp
push dword [0x40c918]
call fcn.00405cc0
push 1
push str.CorelSplashWnd
push eax
mov dword [0x40c8d8], eax
call dword [sym.imp.USER32.dll_SetPropW]
cmp byte [esp + 0x10], 0
pop ebp
je 0x4046b6
push 0xffffffffffffffec
push dword [0x40c8d8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [0x40c8d8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push 0
push dword [0x40c954]
push dword [0x40c8d8]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push dword [0x40c8d8]
call dword [sym.imp.mfc120u.dll_Ordinal_4843]
test eax, eax
je 0x4046d8
mov ecx, dword [esi + 0x28]
cmp dword [ecx - 0xc], 0
je 0x4046d8
push ecx
mov ecx, eax
call dword [sym.imp.mfc120u.dll_Ordinal_13997]
mov eax, dword [0x40c8d8]
test eax, eax
je 0x404709
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x40c8d8]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x40c8d8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x40c8d8]
pop esi
ret
Function at 0x405b00
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x405c5e
cmp esi, 0xffffffff
je 0x405c5e
push 0
lea eax, [esp + 8]
push eax
push 0xe
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405b76
push str.Error_reading_welcome_bitmap_file__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004066c6
add esp, 0x18
ret
mov eax, dword [esp + 0xa]
test eax, eax
jne 0x405b8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xa], eax
cmp dword [esp + 4], 0xe
jne 0x405c41
mov ecx, 0x4d42
cmp word [esp + 8], cx
jne 0x405c41
push ebp
push edi
lea ebp, [eax - 0xe]
push 1
push ebp
call dword [sym.imp.MSVCR120.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x405be2
push str.Out_of_memory_loading_welcome_bitmap_file__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004066c6
add esp, 0x18
ret
push 0
lea eax, [esp + 0x10]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405c26
push str.Error_reading_welcome_bitmap_file__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor eax, eax
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004066c6
add esp, 0x18
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004066c6
add esp, 0x18
ret
push str.Invalid_welcome_bitmap_file_format__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004066c6
add esp, 0x18
ret
push str.Welcome_bitmap_file_does_not_exist__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004066c6
add esp, 0x18
ret
Function at 0xe67940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x171000]
push edi
jmp 0xe6795a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe67961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe67950
mov eax, 1
add ebx, ebx
jne 0xe67973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe67984
jne 0xe679a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe679a3
dec eax
add ebx, ebx
jne 0xe67990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xe67968
add ebx, ebx
jne 0xe6799f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xe679f5
xor ecx, ecx
sub eax, 3
jb 0xe679bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe67a2a
sar eax, 1
mov ebp, eax
jmp 0xe679c6
add ebx, ebx
jne 0xe679c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe67994
inc ecx
add ebx, ebx
jne 0xe679d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe67994
add ebx, ebx
jne 0xe679e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe679d6
jne 0xe679f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe679d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe67a14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe67a06
jmp 0xe67956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe67a14
add edi, ecx
jmp 0xe67956
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xe67a32
cmp byte [edi], 0x11
jne 0xe67a32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xe67a37
lea edi, [esi + 0xa60000]
mov eax, dword [edi]
or eax, eax
je 0xe67aaf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa97884]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa97a00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe67a64
mov ecx, edi
jns 0xe67a93
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa97a04]
or eax, eax
je 0xe67aa9
mov dword [ebx], eax
add ebx, 4
jmp 0xe67a81
call dword [esi + 0xa97a14]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xe67ae0
cmp al, 0xef
ja 0xe67ad3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xe67ab5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xe67ac2
mov ebp, dword [esi + 0xa97a08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xe67b14
sub esp, 0xffffff80
jmp 0x420577
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
aaa
adc byte [ecx + 0x5496799], dh
push ds
bound ebx, qword [eax - 0x245f70c4]
push esp
xor eax, 0x9a2e7194
pushfd
add al, 0xb7
invalid
Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call fcn.00401780
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
call eax
sub esp, 0x14
test eax, eax
je 0x401609
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
mov dword [esp], 0x407ee
call sub.cr.dll_jnazmCbfSqgbZQfg
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401930
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402670
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402670
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401990
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x401ab0
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4019c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a47
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019b0
mov dword [esp], ebx
call fcn.00402380
mov edi, eax
test eax, eax
je 0x401ad7
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004024c0
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ab7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a40
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a50
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401930
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4019ce
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401930
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401930
lea esi, [esi]
nop
Function at 0x401ff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40607c]
sub esp, 4
test ebx, ebx
je 0x402045
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40203e
test esi, esi
je 0x40203e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402020
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402380
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4023a5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4023b0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4023a5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4023f8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4023ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4023e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4018ec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.004014da

Function at 0x4014da
Capabilities:
Delete file
Encode data using base64 via winapi
Get common file path

Disassembly:
push ecx
push edx
enter 0x220, 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x220], 0
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret
Function at 0x100025c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x100025d0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100025e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10002ab0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x10002b2a
xor eax, eax
cmp ecx, ebp
je 0x10002b12
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x10002b38
cmp ecx, ebp
je 0x10002bcb
push ecx
jmp 0x10002bc5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x10002b9a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.10002ab0
mov ebx, eax
cmp ebx, ebp
jne 0x10002be8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x10002b60
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x10002bad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.10002c60
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x10002bcb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002dfc6
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x10002bf7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10002bcd