joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0xddce76
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0xddce7c
pop ebp
sub ebp, 0x10
sub ebp, 0x9dce6c
jmp 0xddce92
mov eax, 0x9dce6c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0xe79e0445
xor byte [eax], dl
inc eax
dec ecx
jne 0xddcea9
jmp 0xddcebc
into
mov dh, cl
int3
Function at 0xa80058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a801a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa8007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8006a
add dl, dl
jne 0xa80089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa800dc
xor eax, eax
add dl, dl
jne 0xa80096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8017d
add dl, dl
jne 0xa800a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa800d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa80075
mov eax, 1
add dl, dl
jne 0xa800ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa800e1
sub eax, ebx
mov ebx, 1
jne 0xa80128
mov ecx, 1
add dl, dl
jne 0xa8010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa80119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa80105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa8013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa80136
cmp eax, 0x7d00
jae 0xa8016d
cmp eax, 0x500
jb 0xa80168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
cmp eax, 0x7f
ja 0xa80170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa8019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa80075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401870
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x403144
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x164], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call sub.MFC42.DLL_CString::CString_1
add esi, 0x20
push str..
lea eax, [esp + 0x1c]
mov bl, 3
push esi
push eax
mov byte [esp + 0x170], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401966
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x170]
mov dword [esp + 0x164], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x401a6a
push ebp
mov ebp, dword [esp + 0x170]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
shr esi, 4
push 0x405358
push ecx
and esi, 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
test esi, esi
jne 0x401a02
mov eax, dword [esp + 0x178]
test eax, eax
jne 0x4019d4
mov edx, dword [esp + 0x174]
push 0x405674
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4019ea
mov ecx, dword [esp + 0x174]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jne 0x401a02
mov edx, dword [esp + 0x10]
push edx
jmp 0x4019ef
lea ecx, [esp + 0x174]
lea edx, [esp + 0x10]
push ecx
push edx
call eax
add esp, 8
test al, al
je 0x401a02
mov eax, dword [esp + 0x10]
push eax
push 0x405358
push ebp
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edi, 1
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40196e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x174]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 0xc

Function at 0x402c90
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x14
Function at 0x402e2c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404120
push 0x402f6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x405698], 0xffffffff
or dword [0x40569c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x405690]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40568c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x405694], eax
call fcn.00402f69
cmp dword [0x4055a8], 0
jne 0x402eaf
push 0x402f66
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402f54
push 0x405018
push 0x405014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x405688]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x405684]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x405010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401040
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x414860
Capabilities:
Hash data with md5

Disassembly:
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [esp + 0x14]
mov dword [0x481ec8], 0x5cdd12a0
mov ax, word [0x486a62]
dec eax
mov word [0x486a62], ax
add dword [0x481664], 0x4a0a918
mov dword [esp], edi
call fcn.0044dad0
mov cx, word [0x486d06]
add ecx, 0x202a
mov word [0x486d06], cx
mov ecx, dword [0x482c74]
mov edx, dword [0x481c20]
or edx, ecx
xor edx, 0x6a76490e
cmp edx, 0x6a11beb0
jg 0x4148da
mov cx, word [0x486384]
add ecx, 0xffffc633
mov word [0x486384], cx
jmp 0x4148f8
mov ecx, dword [0x481548]
shl ecx, 4
or ecx, 0xb5219341
mov edx, dword [0x4841bc]
imul edx, ecx
mov dword [0x4841bc], edx
mov dword [esi], 0
mov cx, word [0x486948]
inc ecx
mov word [0x486948], cx
mov dword [esi + 4], 0
mov ecx, dword [0x4822fc]
imul ecx, ecx, 0x36fd2000
mov edx, dword [0x483348]
add edx, ecx
or dword [0x482dd8], edx
mov dword [esi + 8], 0x67452301
or dword [0x47f88c], 0xe3dd137d
mov dword [esi + 0xc], 0xefcdab89
add dword [0x4820d8], 0xfd59ada5
mov dword [esi + 0x10], 0x98badcfe
mov dword [0x47fe70], 0xd799ab92
mov dword [esi + 0x14], 0x10325476
mov ecx, dword [0x4834ec]
sar ecx, 5
imul ecx, ecx, 0xfc18697e
cmp ecx, 0x915a3db7
jl 0x414986
mov cx, word [0x487590]
xor dword [0x483cd4], 0x3644fef3
mov dword [esp + 4], eax
mov dword [esp], edi
mov ecx, esi
call fcn.0041ee00
sub esp, 8
add dword [0x484988], 0x101260a5
mov ecx, esi
call fcn.0042b650
mov eax, dword [0x4818ac]
add eax, 0x7c476a16
or eax, 0x3584291e
add dword [0x483890], eax
mov ecx, esi
call fcn.004363e0
mov ax, word [0x4872c0]
add eax, 0x4f29
mov word [0x4872c0], ax
add esi, 0xb9
mov eax, esi
add esp, 8
pop esi
pop edi
ret 4
Function at 0x4588fb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47e260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004557f1
mov dword [ebp - 0x14], eax
cmp dword [0x488c4c], esi
jne 0x4589ee
push 0x800
push esi
push 0x46f240
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x45897b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x458ace
push esi
push esi
push 0x46f240
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x458ace
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x458ace
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x488c4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x488c50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x488c54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x488c5c], eax
test eax, eax
je 0x4589eb
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x488c58], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x458a13
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x458a06
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x458a28
push 4
pop eax
jmp 0x458ad0
cmp dword [ebp - 0x14], esi
je 0x458a28
push dword [0x488c4c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x458a0d
mov eax, dword [0x488c58]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x458a86
cmp dword [0x488c5c], edi
je 0x458a86
push eax
call ebx
push dword [0x488c5c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x458a86
test eax, eax
je 0x458a86
call ecx
test eax, eax
je 0x458a7b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x458a7b
test byte [ebp - 8], 1
jne 0x458a86
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x458ab6
mov eax, dword [0x488c50]
cmp eax, edi
je 0x458ab3
push eax
call ebx
test eax, eax
je 0x458ab3
call eax
mov esi, eax
test esi, esi
je 0x458ab3
mov eax, dword [0x488c54]
cmp eax, edi
je 0x458ab3
push eax
call ebx
test eax, eax
je 0x458ab3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x488c4c]
call ebx
test eax, eax
je 0x458ace
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x458ad0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458aff
mov esp, ebp
pop ebp
ret
Function at 0x40f630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x43f080]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x6fd86d5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
sub eax, 0xb42e6542
je 0x40f69a
jmp 0x40f66a
mov eax, dword [ebp - 0x20]
sub eax, 0x6fd86d5
je 0x40f682
jmp 0x40f67d
jmp 0x40f6e5
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, esp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xb42e6542
jmp 0x40f6e5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0xc]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x40f6b4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004276e0
lea esp, [ebp - 4]
pop edi
pop ebp
ret
jmp 0x40f654
Function at 0x40f6f0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xb2ecd623
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
sub eax, 0xb2ecd623
je 0x40f780
jmp 0x40f71c
mov eax, dword [ebp - 0x30]
sub eax, 0xdafbd751
je 0x40f7e6
jmp 0x40f72f
mov eax, dword [ebp - 0x30]
sub eax, 0xe9a3e9e9
je 0x40f7f8
jmp 0x40f742
mov eax, dword [ebp - 0x30]
sub eax, 0xf9ff9b1
je 0x40f7a4
jmp 0x40f755
mov eax, dword [ebp - 0x30]
sub eax, 0x1cdff20b
je 0x40f857
jmp 0x40f768
mov eax, dword [ebp - 0x30]
sub eax, 0x701ce807
je 0x40f879
jmp 0x40f77b
jmp 0x40f881
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0xf9ff9b1
jmp 0x40f881
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
xor edx, 0xffffffff
mov ecx, 0xffffffff
xor ecx, 2
mov eax, 0xffffffff
xor eax, 0x9f46248d
or edx, ecx
or eax, 0x9f46248d
xor edx, 0xffffffff
and edx, eax
mov eax, 0x701ce807
mov ecx, 0xdafbd751
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40f881
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xe9a3e9e9
jmp 0x40f881
mov ecx, dword [ebp - 0x18]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x34], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0xa54af24f
and eax, 0xa54af24f
and ecx, edx
mov edi, esi
and edi, 0xa54af24f
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x34]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0xa54af24f
and ecx, edx
or eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0x1cdff20b
jmp 0x40f881
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub esp, 8
mov dword [ebp - 0x28], 0x701ce807
jmp 0x40f881
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x40f706
Function at 0x427fab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x427fea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427fea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427fea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x427fea
cmp dword [ecx + 0x74], 0xe
jbe 0x427fea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42f74b
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 0x42f7e8
push ebx
push esi
call fcn.0042f714
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.0042f6a8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f795
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f7e7
push edi
push eax
call fcn.0042e1e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42f7b5
call fcn.0042e22e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f7e6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042f6a8
add esp, 0x20
test eax, eax
jne 0x42f7d4
push edi
call fcn.0042e22e
jmp 0x42f7dc
push ebx
call fcn.0042e22e
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 0x4309f7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43a0e0
push 0x43a0d8
push str.FlsAlloc
push 0x1f
call fcn.004308b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430a2b
push dword [ebp + 8]
mov ecx, esi
call dword [0x43714c]
call esi
jmp 0x430a31
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x430a75
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43a0f0
push 0x43a0e8
push str.FlsGetValue
push 0x21
call fcn.004308b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430aac
push dword [ebp + 8]
mov ecx, esi
call dword [0x43714c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x430ab4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43a0f8
push 0x43a0f0
push str.FlsSetValue
push 0x22
call fcn.004308b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430aee
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43714c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x435dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x435ded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435ded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001850
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, 0x3d956f8
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
add esi, 0xfffffffe
xor ecx, ecx
test esi, esi
jle 0x100018e2
jmp 0x10001880
movzx edi, byte [edx + ecx]
shr edi, 2
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax], bl
movsx edi, byte [edx + ecx]
movzx ebx, byte [edx + ecx + 1]
and edi, 3
shr ebx, 4
shl edi, 4
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 1], bl
movsx ebx, byte [edx + ecx + 1]
movzx edi, byte [edx + ecx + 2]
and ebx, 0xf
add ebx, ebx
shr edi, 6
add ebx, ebx
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 2], bl
movsx edi, byte [edx + ecx + 2]
and edi, 0x3f
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 3], bl
add ecx, 3
add eax, 4
cmp ecx, esi
jl 0x10001880
cmp ecx, dword [ebp + 8]
jge 0x1000195e
movzx esi, byte [ecx + edx]
shr esi, 2
mov bl, byte [ebp + esi - 0x44]
mov esi, dword [ebp + 8]
dec esi
mov byte [eax], bl
cmp ecx, esi
jne 0x10001921
movsx ecx, byte [ecx + edx]
and ecx, 3
add ecx, ecx
mov dl, byte [ebp + ecx*8 - 0x44]
mov byte [eax + 1], dl
pop edi
mov byte [eax + 2], 0x3d
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ecx + edx + 1]
movsx ecx, byte [ecx + edx]
movzx edx, byte [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x44]
mov byte [eax + 1], cl
movsx edx, byte [esi]
and edx, 0xf
movzx ecx, byte [ebp + edx*4 - 0x44]
pop edi
mov byte [eax + 2], cl
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10003940
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
xor dword [0x3d9e210], eax
push ebx
push esi
push edi
mov edi, dword [0x3d9519c]
call edi
mov ebx, dword [0x3d95194]
xor dword [0x3d9e210], eax
push 0x3d9622c
call ebx
test eax, eax
je 0x10003981
push 0x3d998a4
push eax
call dword [0x3d95190]
test eax, eax
je 0x10003981
push 0x3d9e210
call eax
mov ecx, dword [0x3d9e210]
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
lea esi, [ecx + eax]
rdtsc
xor ecx, eax
mov dword [0x3d9e210], ecx
call edi
xor dword [0x3d9e210], eax
push 0x3d9622c
call ebx
test eax, eax
je 0x100039c7
push 0x3d998a4
push eax
call dword [0x3d95190]
test eax, eax
je 0x100039c7
push 0x3d9e210
call eax
mov ecx, dword [0x3d9e210]
push esi
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
add eax, ecx
push eax
push 0x3d95968
push 0x104
push 0x3da9c60
call dword [0x3d952f4]
add esp, 0x14
pop edi
pop esi
pop ebx
ret