joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007cdac
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x1007cf96
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x10097188], 0
jne 0x1007cf7b
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x1007cf74
xor eax, eax
push ebp
push 0x1007cf6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x1007cf56
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x1007cf50
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x10096d18]
call fcn.10064af8
mov eax, dword [ebp - 0x24]
call fcn.1006187c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1007ce84
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x10096d1c]
call fcn.10064af8
mov eax, dword [ebp - 0x28]
call fcn.1006187c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1007ceb7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x10096d20]
call fcn.10064af8
mov eax, dword [ebp - 0x2c]
call fcn.1006187c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1007ceea
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x1007cf3c
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x1007cf07
cmp eax, dword [ebp - 0x10]
je 0x1007cf38
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x1007cf1c
cmp eax, dword [ebp - 0x18]
je 0x1007cf38
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x1007cf31
cmp eax, dword [ebp - 0x20]
je 0x1007cf38
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x1007cef4
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007cf74
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x10097188], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007cf9d
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1006144c
ret
Function at 0x409e70
Capabilities:
Encode data using xor

Disassembly:
or eax, dword [eax]
add byte [esi + 0xb], bh
add byte [eax], al
jg 0x409e05
add byte [edi + 0xb], bh
add byte [eax], al
or byte [ebx], 0
add byte [ecx], bh
add al, byte [edx]
add byte [ecx], ch
test dword [edx], edi
add al, byte [edx]
add byte [edx], ch
test dword [ebx], edi
add al, byte [edx]
add byte [ebx], ch
test dword [edx + eax], edi
add al, byte [eax]
sub al, 0x85
cmp eax, 0x2d000202
test dword [esi], edi
add al, byte [edx]
add byte [esi], ch
test dword [edi], edi
add al, byte [edx]
add byte [edi], ch
test dword [eax + 2], eax
add al, byte [eax]
xor byte [ebp + 0x20241], al
xor dword [ebp + 0x20242], eax
xor al, byte [ebp + 0x20243]
xor eax, dword [ebp + 0x20244]
xor al, 0x85
inc ebp
add al, byte [edx]
add byte [0x2024685], dh
add byte [esi], dh
test dword [edi + 2], eax
add al, byte [eax]
aaa
test dword [eax + 2], ecx
add al, byte [eax]
cmp byte [ebp + 0x20249], al
cmp dword [ebp + 0x2024a], eax
jns 0x409df1
dec ebx
add al, byte [edx]
add byte [edx - 0x7b], bh
jp 0x409df7
jp 0x409df7
dec esp
add al, byte [edx]
add byte [ebx - 0x7b], bh
dec ebp
add al, byte [edx]
add byte [ebp + eax*4 + 0x4e], bh
add al, byte [edx]
add byte [ebp - 0x7b], bh
dec edi
add al, byte [edx]
add byte [esi - 0x7b], bh
push eax
add al, byte [edx]
add byte [edi - 0x7b], bh
push ecx
add al, byte [edx]
add byte [eax + 0x2025285], al
add byte [ecx + 0x2025385], al
add byte [edx + 0x2025485], al
add ah, bl
test dword [ebp + 2], edx
add al, byte [eax]
fld qword [ebp + 0x20256]
fiadd word [ebp + 0x20257]
fild word [ebp + 0x20258]
inc ecx
xchg byte [ecx + 2], bl
add al, byte [eax]
inc edx
xchg byte [edx + 2], bl
add al, byte [eax]
inc ebx
xchg byte [ebx + 2], bl
add al, byte [eax]

Function at 0x40c970
Capabilities:
Authenticate hmac
Get number of processors

Disassembly:
je 0x40c9d7
invalid
dec eax
imul ebp, dword [esi + 0x74], 0x676edd20
imul ebp, dword [ecx + ebp*2 + 0x7a], 0x69736563
dec eax
imul ebp, dword [esi + 0x74], 0x676edd20
imul ebp, dword [ecx + ebp*2 + 0x7a], 0x69736563
and byte [ecx + ebp*2 + 0x6c], al
and byte [ebp + 0x73], al
je 0x40ca66
invalid
arpl word [ebp + 0x20], sp
inc esp
imul ebp, dword [eax + 0x44], 0x65747365
invalid
Function at 0x401a00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add dword [ebp + 8], 0xa8
leave
jmp fcn.004095f0

Function at 0x41b760
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.004286a4
call fcn.0041b910
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x41b798
jmp 0x41b834
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x41b797
cmp cl, 0x22
je 0x41b7f0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
je 0x41b810
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x41b810
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
jne 0x41b7d0
jmp 0x41b810
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test edx, eax
jne 0x41b7f0
cmp cl, 0x22
je 0x41b870
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x41b82e
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x41b820
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x41b852
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041ba70
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x41b810
Function at 0x41ba70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
call sub.KERNEL32.dll_GetCommandLineW
lea ebx, [ebp - 0x10]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [method.QString.fromWCharArray_wchar_t_const__int_]
push edx
lea esi, [ebp - 0xc]
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [method.QString.toLocal8Bit___const]
push eax
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x41bac0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
mov dword [ebp - 0x14], 0
mov dword [esp + 4], 4
mov dword [esp], 0x30
call dword [method.QVectorData.allocate_int__int_]
mov ebx, eax
test eax, eax
je 0x41bc08
mov dword [ebp - 0x18], ebx
mov dword [ebx], 1
mov dword [ebx + 8], 8
mov dword [ebx + 4], 8
mov al, byte [ebx + 0xc]
or eax, 1
and eax, 0xfffffffd
mov byte [ebx + 0xc], al
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
add ebx, 0x10
mov dword [esp], ebx
call dword [sym.imp.QtCore4.dll_qMemSet_void__int__unsigned_int_]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
dec edx
je 0x41bbf4
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [method.QByteArray.realloc_int_]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
lea ebx, [ebp - 0x18]
mov dword [esp + 0x14], ebx
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.QtCore4.dll_qWinMain_HINSTANCE____HINSTANCE____char__int__int__QVector_char__
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
dec edx
je 0x41bb90
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004385f8
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004013b0
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41bbb8
lock dec dword [eax]
setne dl
test dl, dl
je 0x41bbdc
mov eax, dword [ebp - 0xc]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x41bbd1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.QtCore4.dll_qFree_void_]
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret 0x10
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [method.QVectorData.free_QVectorData__int_]
jmp 0x41bbb8
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x10]
cmp edx, ecx
jne 0x41bb31
jmp 0x41bb47
call dword [sym.imp.QtCore4.dll_qBadAlloc__]
jmp 0x41bae6
Function at 0x428b20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 8], edi
sete al
cmp esi, ecx
sete dl
or eax, edx
xor edi, edi
test al, 1
jne 0x428b80
test esi, esi
setne al
test ecx, ecx
setne dl
xor eax, edx
test al, 1
jne 0x428b91
test ebx, ebx
je 0x428b74
movzx eax, word [esi]
movzx edx, word [ecx]
cmp ax, dx
jne 0x428bad
add esi, 2
add ecx, 2
dec ebx
jne 0x428b60
xor edi, edi
lea esi, [esi]
lea edi, [edi]
mov eax, edi
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cmp ecx, 1
mov ebx, dword [esp]
sbb eax, eax
and eax, 2
mov esi, dword [esp + 4]
lea edi, [eax - 1]
mov eax, edi
mov edi, dword [esp + 8]
add esp, 0xc
ret
movzx edi, ax
movzx eax, dx
sub edi, eax
jmp 0x428b80
Function at 0x4633d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebx, eax
cmp eax, 0xffffffff
je 0x463408
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x4633df
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40ebf3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419794]
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.00409beb
mov dword [ebp - 0x14], eax
cmp dword [0x81407c], esi
jne 0x40ece6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ec73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40edc6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40edc6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40edc6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81407c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814080], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814084], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81408c], eax
test eax, eax
je 0x40ece3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814088], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ed0b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ecfe
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ed20
push 4
pop eax
jmp 0x40edc8
cmp dword [ebp - 0x14], esi
je 0x40ed20
push dword [0x81407c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ed05
mov eax, dword [0x814088]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ed7e
cmp dword [0x81408c], edi
je 0x40ed7e
push eax
call ebx
push dword [0x81408c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ed7e
test eax, eax
je 0x40ed7e
call ecx
test eax, eax
je 0x40ed73
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 0x40ed73
test byte [ebp - 8], 1
jne 0x40ed7e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40edae
mov eax, dword [0x814080]
cmp eax, edi
je 0x40edab
push eax
call ebx
test eax, eax
je 0x40edab
call eax
mov esi, eax
test esi, esi
je 0x40edab
mov eax, dword [0x814084]
cmp eax, edi
je 0x40edab
push eax
call ebx
test eax, eax
je 0x40edab
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81407c]
call ebx
test eax, eax
je 0x40edc6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40edc8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045fa
mov esp, ebp
pop ebp
ret
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
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.00407ccb
mov dword [ebp - 0x14], eax
cmp dword [0x4ad378], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad378], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad37c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad380], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad388], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad384], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x4ad378]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x4ad384]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x4ad388], edi
je 0x40d429
push eax
call ebx
push dword [0x4ad388]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
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 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x4ad37c]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x4ad380]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad378]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043de
mov esp, ebp
pop ebp
ret
Function at 0x404b2e
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push edi
mov edi, dword [ebx]
mov dword [ebp - 4], 0xc6ef3720
mov dword [ebp - 0x20], 0x9e3779b9
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x20
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + edi]
mov eax, edi
shr eax, 5
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
add dword [ebp + 8], eax
push ecx
lea eax, [ebp - 8]
push eax
mov dword [0x466704], 0xffcf03fc
call fcn.00404482
mov eax, dword [ebp + 8]
xor eax, dword [ebp - 8]
push dword [ebp - 0x18]
and dword [0x466704], 0
or dword [0x46670c], 0xffffffff
sub esi, eax
mov eax, dword [ebp - 4]
lea edx, [eax + esi]
mov eax, esi
shr eax, 5
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov dword [0x466708], 0xff6b3619
call fcn.00404b11
and dword [ebp + 0xc], 0
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp + 8]
xor eax, edx
sub edi, eax
mov eax, dword [ebp - 0x20]
add dword [ebp + 0xc], eax
sub dword [ebp - 4], eax
dec dword [ebp - 0xc]
jne 0x404b6e
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
pop ebx
leave
ret 8
Function at 0x40ad65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c9d8]
jne 0x40ad6f
repz ret
jmp fcn.0040ea5d

Function at 0x40e6f7
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.0040a54c
and dword [ebp - 4], 0
cmp dword [0x4676d8], 0
mov ebx, eax
jne 0x40e7a8
push 0x4038d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e859
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038cc
push edi
call esi
test eax, eax
je 0x40e859
push eax
call fcn.0040a4da
mov dword [esp], 0x4038bc
push edi
mov dword [0x4676d8], eax
call esi
push eax
call fcn.0040a4da
mov dword [esp], 0x4038a8
push edi
mov dword [0x4676dc], eax
call esi
push eax
call fcn.0040a4da
mov dword [esp], 0x40388c
push edi
mov dword [0x4676e0], eax
call esi
push eax
call fcn.0040a4da
pop ecx
mov dword [0x4676e8], eax
test eax, eax
je 0x40e7a8
push 0x403874
push edi
call esi
push eax
call fcn.0040a4da
pop ecx
mov dword [0x4676e4], eax
mov eax, dword [0x4676e4]
cmp eax, ebx
je 0x40e800
cmp dword [0x4676e8], ebx
je 0x40e800
push eax
call fcn.0040a555
push dword [0x4676e8]
mov esi, eax
call fcn.0040a555
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e800
test edi, edi
je 0x40e800
call esi
test eax, eax
je 0x40e7f7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e7f7
test byte [ebp - 0xc], 1
jne 0x40e800
or dword [ebp + 0x10], 0x200000
jmp 0x40e839
mov eax, dword [0x4676dc]
cmp eax, ebx
je 0x40e839
push eax
call fcn.0040a555
pop ecx
test eax, eax
je 0x40e839
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e839
mov eax, dword [0x4676e0]
cmp eax, ebx
je 0x40e839
push eax
call fcn.0040a555
pop ecx
test eax, eax
je 0x40e839
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4676d8]
call fcn.0040a555
pop ecx
test eax, eax
je 0x40e859
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e85b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000cd31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002cd97
call fcn.10017073
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000cdae
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000cdae
call fcn.10005a99
mov esi, eax
jmp 0x1000ce85
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000cdd1
call fcn.10005a99
jmp 0x1000ce78
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000cdc7
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000ce01
mov esi, 0x8007000e
jmp 0x1000ce7a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100226a8
jmp 0x1000ce27
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cdfa
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000cdc7
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100226a8
mov esi, eax
test edi, edi
je 0x1000ce85
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000ce9e
lea ecx, [ebp - 0x418]
call fcn.1000c4af
mov eax, esi
call fcn.10016fc0
ret 0x10