joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001170
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1001fe9b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x10028b30]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x10028b30]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
call fcn.10002546
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100011c3
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x1002c914
call fcn.10001790
push str.temp.txt
lea edx, [esp + 8]
push 0x1002c914
push edx
call fcn.100012f0
add esp, 0xc
push eax
mov ecx, 0x1002c914
mov dword [esp + 0x11c], 0
call fcn.10001710
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001236
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.100010e0
mov eax, 1
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000c99e
add esp, 0x118
ret

Function at 0x10001b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001b49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001b84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001b80
lea ebx, [ebx]
cmp esi, eax
jae 0x10001b84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001b70
cmp esi, eax
jb 0x10001b8a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x1000c99e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10028b30]
jne 0x1000c9a8
repz ret
jmp fcn.1001094c
Function at 0x1001ae25
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10010ab3
xor ebx, ebx
cmp dword [0x1002c6bc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001aefa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001ae65
xor eax, eax
jmp 0x1001afbe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100238d0
push edi
call esi
cmp eax, ebx
je 0x1001ae5e
push eax
call fcn.10010a50
mov dword [esp], 0x100238c0
push edi
mov dword [0x1002c6bc], eax
call esi
push eax
call fcn.10010a50
mov dword [esp], 0x100238ac
push edi
mov dword [0x1002c6c0], eax
call esi
push eax
call fcn.10010a50
mov dword [0x1002c6c4], eax
lea eax, [ebp - 8]
push eax
call fcn.1000e195
test eax, eax
pop ecx
pop ecx
je 0x1001aec8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001165c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001aefa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10010a50
cmp eax, ebx
pop ecx
mov dword [0x1002c6cc], eax
je 0x1001aefa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10010a50
pop ecx
mov dword [0x1002c6c8], eax
mov eax, dword [0x1002c6c8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001af73
cmp dword [0x1002c6cc], esi
je 0x1001af73
push eax
call fcn.10010abc
pop ecx
call eax
cmp eax, ebx
je 0x1001af40
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1002c6cc]
call fcn.10010abc
pop ecx
call eax
test eax, eax
je 0x1001af40
test byte [ebp - 0x18], 1
jne 0x1001af73
lea eax, [ebp - 0xc]
push eax
call fcn.1000e1cc
test eax, eax
pop ecx
je 0x1001af5b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001165c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001af6a
or dword [ebp + 0x10], 0x200000
jmp 0x1001afa4
or dword [ebp + 0x10], 0x40000
jmp 0x1001afa4
mov eax, dword [0x1002c6c0]
cmp eax, esi
je 0x1001afa4
push eax
call fcn.10010abc
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001afa4
mov eax, dword [0x1002c6c4]
cmp eax, esi
je 0x1001afa4
push dword [ebp - 4]
push eax
call fcn.10010abc
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 [0x1002c6bc]
call fcn.10010abc
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401030
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ed80
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x416008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x44
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00409a00
xor eax, eax
mov dword [ebp - 0x78], 0x44
xor ecx, ecx
mov dword [ebp - 0x18], 7
add esp, 0xc
mov dword [ebp - 0x1c], eax
xor edi, edi
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], ecx
jne 0x4010a9
cmp dword [esi + 0x14], 8
jb 0x4010a5
mov edi, dword [esi]
jmp 0x4010ef
mov edi, esi
jmp 0x4010ef
push 1
push 0x4144cc
lea ecx, [ebp - 0x2c]
call fcn.004012f0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.004011e0
push 3
push 0x4144d0
lea ecx, [ebp - 0x2c]
call fcn.004012f0
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004011e0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401180
mov eax, dword [ebp + 0xc]
xor edi, edi
test eax, eax
je 0x401168
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x40114e
cmp esi, 0x102
jne 0x401168
push 0
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401168
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x84]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x88]
call esi
jmp 0x401188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 0x18], 8
jb 0x401199
push dword [ebp - 0x2c]
call fcn.00402cd4
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp + 0x24], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x4011be
push dword [ebp + 0x10]
call fcn.00402cd4
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402cc5
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40b4cf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416008]
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.00408cdd
mov dword [ebp - 0x14], eax
cmp dword [0x418240], esi
jne 0x40b5c2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40b54f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b6a2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40b6a2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6a2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x418240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x418244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x418248], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418250], eax
test eax, eax
je 0x40b5bf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41824c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b5e7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b5da
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40b5fc
push 4
pop eax
jmp 0x40b6a4
cmp dword [ebp - 0x14], esi
je 0x40b5fc
push dword [0x418240]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40b5e1
mov eax, dword [0x41824c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40b65a
cmp dword [0x418250], edi
je 0x40b65a
push eax
call ebx
push dword [0x418250]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b65a
test eax, eax
je 0x40b65a
call ecx
test eax, eax
je 0x40b64f
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 0x40b64f
test byte [ebp - 8], 1
jne 0x40b65a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40b68a
mov eax, dword [0x418244]
cmp eax, edi
je 0x40b687
push eax
call ebx
test eax, eax
je 0x40b687
call eax
mov esi, eax
test esi, esi
je 0x40b687
mov eax, dword [0x418248]
cmp eax, edi
je 0x40b687
push eax
call ebx
test eax, eax
je 0x40b687
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x418240]
call ebx
test eax, eax
je 0x40b6a2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40b6a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cc5
mov esp, ebp
pop ebp
ret
Function at 0x424860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x42487a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x424881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x424870
mov eax, 1
add ebx, ebx
jne 0x424893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x424888
jne 0x4248a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424888
xor ecx, ecx
sub eax, 3
jb 0x4248b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42492a
mov ebp, eax
add ebx, ebx
jne 0x4248c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4248d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4248f4
inc ecx
add ebx, ebx
jne 0x4248e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4248d5
jne 0x4248f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4248d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x424914
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x424905
jmp 0x424876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x424914
add edi, ecx
jmp 0x424876
pop esi
mov edi, esi
mov ecx, 0x64c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x424932
cmp byte [edi], 0xa
jne 0x424932
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 0x424937
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x4249af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x241b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x24238]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x424964
mov ecx, edi
jns 0x424993
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 + 0x24240]
or eax, eax
je 0x4249a9
mov dword [ebx], eax
add ebx, 4
jmp 0x424981
call dword [esi + 0x2423c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4249e0
cmp al, 0xef
ja 0x4249d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4249b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4249c2
mov ebp, dword [esi + 0x24244]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x424a14
sub esp, 0xffffff80
jmp 0x407903
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ebaa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x42ebaa
lcall 0x5de5, 0x8b10c483
jmp loc.00a65a88
Function at 0x402c1a
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x402ccf
mov edx, dword [ebp - 8]
sub edx, 0x61c88647
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 8]
xor eax, ecx
mov edx, dword [ebp - 0x20]
shr edx, 5
add edx, dword [ebp - 0xc]
xor eax, edx
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x402c69
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402ce4
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0xc6ef3720
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x402d98
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 8]
xor ecx, edx
mov eax, dword [ebp - 0x20]
shr eax, 5
add eax, dword [ebp - 0xc]
xor ecx, eax
mov edx, dword [ebp - 0x18]
sub edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, 0x61c88647
mov dword [ebp - 8], eax
jmp 0x402d33
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402eff
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x402fb4
mov edx, dword [ebp - 8]
sub edx, 0x61c88647
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 8]
xor eax, ecx
mov edx, dword [ebp - 0x20]
shr edx, 5
add edx, dword [ebp - 0xc]
xor eax, edx
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x402f4e
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402fc9
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0xc6ef3720
mov dword [ebp - 0x24], 0x20
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x40307d
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 8]
xor ecx, edx
mov eax, dword [ebp - 0x20]
shr eax, 5
add eax, dword [ebp - 0xc]
xor ecx, eax
mov edx, dword [ebp - 0x18]
sub edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, 0x61c88647
mov dword [ebp - 8], eax
jmp 0x403018
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40503c
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0x10], 0x40
jle 0x405069
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00404eeb
add esp, 0xc
mov dword [ebp + 0x10], 0x20
lea eax, [ebp - 0x20]
mov dword [ebp + 0xc], eax
push 0x40
push 0x36
mov ecx, dword [ebp + 8]
add ecx, 0x68
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
push 0x5c
mov edx, dword [ebp + 8]
add edx, 0xa8
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x4050a4
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x10]
jge 0x4050f4
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x24]
xor eax, eax
mov al, byte [edx + 0x68]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x24]
mov byte [ecx + 0x68], al
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x24]
xor eax, eax
mov al, byte [edx + 0xa8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x24]
mov byte [ecx + 0xa8], al
jmp 0x40509b
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00404178
add esp, 8
push 0x40
mov eax, dword [ebp + 8]
add eax, 0x68
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004041b0
add esp, 0xc
push 0x20
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esp, ebp
pop ebp
ret