joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e0f0
Capabilities:
Delete file

Disassembly:
cmp dword [0x1001b1ec], 1
jne 0x1000e105
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test ebp, ebp
push edi
je 0x1000e162
xor edi, edi
cmp word [ebp], si
mov eax, ebp
je 0x1000e12b
lea esp, [esp]
add eax, 2
add edi, 1
cmp word [eax], si
jne 0x1000e120
push ebx
lea ebx, [edi + edi + 2]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000e161
push 0
push 0
push ebx
push esi
add edi, 1
push edi
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000e161
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
mov edi, eax
je 0x1000e176
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1000e180
Capabilities:
Get common file path

Disassembly:
cmp dword [0x1001b1ec], 1
jne 0x1000e19a
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
ret
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebx
lea edi, [ebp + ebp]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
je 0x1000e252
cmp esi, edi
jbe 0x1000e1cc
shr esi, 1
add esi, 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ebx, ebx
je 0x1000e23f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea edx, [esi + esi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1000e23f
cmp byte [ebx], 0
jne 0x1000e223
mov word [edi], 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add ebp, 0xffffffff
cmp esi, ebp
ja 0x1000e248
lea eax, [esi + esi + 2]
push eax
push edi
push ebx
call fcn.1000ed10
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
lea eax, [esi + 1]
push eax
push edi
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000e1f6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push edi
add esi, 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x1000e3a0
Capabilities:
Get file attributes

Disassembly:
cmp dword [0x1001b1ec], 1
jne 0x1000e3b5
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test ebp, ebp
push edi
je 0x1000e412
xor edi, edi
cmp word [ebp], si
mov eax, ebp
je 0x1000e3db
lea esp, [esp]
add eax, 2
add edi, 1
cmp word [eax], si
jne 0x1000e3d0
push ebx
lea ebx, [edi + edi + 2]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000e411
push 0
push 0
push ebx
push esi
add edi, 1
push edi
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000e411
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test esi, esi
mov edi, eax
je 0x1000e426
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x1000e830
Capabilities:
Create directory

Disassembly:
cmp dword [0x1001b1ec], 1
jne 0x1000e84a
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
ret
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test ebp, ebp
push edi
je 0x1000e8a3
xor edi, edi
cmp word [ebp], si
mov eax, ebp
je 0x1000e86c
add eax, 2
add edi, 1
cmp word [eax], si
jne 0x1000e861
push ebx
lea ebx, [edi + edi + 2]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000e8a2
push 0
push 0
push ebx
push esi
add edi, 1
push edi
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000e8a2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
pop ebx
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
mov edi, eax
je 0x1000e8bc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x1000eaa0
Capabilities:
Get common file path

Disassembly:
cmp dword [0x1001b1ec], 1
jne 0x1000eac4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
ret
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
test ebp, ebp
je 0x1000eb20
xor esi, esi
cmp word [ebp], si
mov eax, ebp
je 0x1000eaeb
lea esp, [esp]
add eax, 2
add esi, 1
cmp word [eax], di
jne 0x1000eae0
lea ebx, [esi + esi + 2]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1000eb20
push 0
push 0
push ebx
push edi
add esi, 1
push esi
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000eb20
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
je 0x1000eb76
xor ebx, ebx
cmp word [eax], bx
je 0x1000eb3d
add eax, 2
add ebx, 1
cmp word [eax], 0
jne 0x1000eb31
lea ebp, [ebx + ebx + 2]
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000eb76
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push esi
add ebx, 1
push ebx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000eb76
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test edi, edi
mov ebp, eax
je 0x1000eb95
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x1000eba0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x1000ebfd
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + edi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000ebfd
lea eax, [edi + 1]
push eax
push esi
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1000ebf1
lea ecx, [eax + eax]
push ecx
push esi
push ebx
call fcn.1000ed10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push esi
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x1001099b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b26c]
jne 0x100109a5
repz ret
jmp fcn.10012f25
Function at 0x10016075
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10010a0d
xor ebx, ebx
cmp dword [0x1001cae4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001614a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100160b5
xor eax, eax
jmp 0x1001620e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100160ae
push eax
call fcn.100109aa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001cae4], eax
call esi
push eax
call fcn.100109aa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001cae8], eax
call esi
push eax
call fcn.100109aa
mov dword [0x1001caec], eax
lea eax, [ebp - 8]
push eax
call fcn.100111ff
test eax, eax
pop ecx
pop ecx
je 0x10016118
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10011036
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001614a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100109aa
cmp eax, ebx
pop ecx
mov dword [0x1001caf4], eax
je 0x1001614a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100109aa
pop ecx
mov dword [0x1001caf0], eax
mov eax, dword [0x1001caf0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100161c3
cmp dword [0x1001caf4], esi
je 0x100161c3
push eax
call fcn.10010a16
pop ecx
call eax
cmp eax, ebx
je 0x10016190
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1001caf4]
call fcn.10010a16
pop ecx
call eax
test eax, eax
je 0x10016190
test byte [ebp - 0x18], 1
jne 0x100161c3
lea eax, [ebp - 0xc]
push eax
call fcn.10011236
test eax, eax
pop ecx
je 0x100161ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10011036
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100161ba
or dword [ebp + 0x10], 0x200000
jmp 0x100161f4
or dword [ebp + 0x10], 0x40000
jmp 0x100161f4
mov eax, dword [0x1001cae8]
cmp eax, esi
je 0x100161f4
push eax
call fcn.10010a16
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100161f4
mov eax, dword [0x1001caec]
cmp eax, esi
je 0x100161f4
push dword [ebp - 4]
push eax
call fcn.10010a16
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 [0x1001cae4]
call fcn.10010a16
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x28281f5d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5c960e14
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x30003967
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call 0x301de000
jmp 0x3000f50a
push 0x60
push 0x3000f668
call fcn.30012fb4
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x3001d288
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
je 0x3001d295
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
jne 0x3001d2a3
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x3004f6d4], esi
mov dword [0x3004f6dc], eax
mov dword [0x3004f6e0], ecx
mov dword [0x3004f6e4], edx
mov dword [0x3004f6d8], edi
call fcn.300012b8
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.300039f6
pop ecx
test eax, eax
je 0x3001d2ae
call fcn.30003498
test eax, eax
je 0x3001d2bb
call fcn.30001357
mov dword [ebp - 4], ebx
call fcn.30003087
test eax, eax
jl 0x3001d2c8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x3004fc60], eax
call fcn.30003c5a
mov dword [0x3004f6c8], eax
call fcn.30002e1f
test eax, eax
jl 0x3001d2d5
call fcn.30003194
test eax, eax
jl 0x3001d2e2
push ebx
call fcn.30008eb5
pop ecx
test eax, eax
jne 0x3001d2ef
call fcn.300049e2
test byte [ebp - 0x44], bl
je 0x3000f663
movzx ecx, word [ebp - 0x40]
push ecx
push eax
push 0
push 0x30000000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x3001d2fb
push eax
call fcn.3000d18e
push 0xa
pop ecx
jmp 0x3000f642
push 0x12
call fcn.30027bb8
pop ecx
jmp 0x3001d34a
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x3001d34a
or edi, 0x8000
jmp 0x3000f590
push 0x1c
call fcn.30027bb8
pop ecx
jmp 0x3000f5d4
push 0x10
call fcn.30027bb8
pop ecx
jmp 0x3000f5e1
push 0x1b
call fcn.3002862c
pop ecx
jmp 0x3000f5f6
push 8
call fcn.3002862c
pop ecx
jmp 0x3000f618
push 9
call fcn.3002862c
pop ecx
jmp 0x3000f625
push eax
call fcn.3002862c
pop ecx
jmp 0x3000f634
call fcn.30028661
jmp 0x3001d330
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x3001d34f
mov eax, 0xff
call fcn.30013054
ret
Function at 0x403b0c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403b40
mov edx, dword [eax + 8]
test edx, edx
jne 0x403b2f
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403b3c
add edx, esi
cmp ebx, edx
jb 0x403b4d
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403b25
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403b88
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x403ba2
xor eax, eax
jmp 0x403d22
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403bb6
xor eax, eax
jmp 0x403d22
cmp word [ebx + 0x14], 0xe0
jne 0x403bc6
cmp word [ebx + 0x18], 0x10b
je 0x403bcd
xor eax, eax
jmp 0x403d22
mov dword [0x4aaf94], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403b0c
add esp, 8
test eax, eax
jne 0x403bf8
xor eax, eax
jmp 0x403d22
mov edx, dword [0x4aaf94]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403b54
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403c2a
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call fcn.004424b2
xor eax, eax
jmp 0x403d22
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x403cf4
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403ce6
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403ce1
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403cd8
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403ccd
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403ccd
test cl, cl
je 0x403cc2
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403ccd
add eax, 2
add edx, 2
test cl, cl
jne 0x403ca6
jne 0x403ccd
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x403d22
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403c8c
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403c64
jmp 0x403d20
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403d18
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x403d14
cmp dword [eax], 0
je 0x403d14
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x403d22
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403cfb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f10
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401dbc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403fc3
mov eax, 0x401a14
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403fc3
mov eax, 0x404140
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403fc3
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403fc3
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403f8b
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403fe0
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401dbc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x404096
mov eax, 0x401a14
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x404096
mov eax, fcn.00403fe0
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x404096
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x404096
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x40405e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404284
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x40429c
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x404293
pop ebp
ret

Function at 0x412b08
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
xor edx, edx
mov dword [eax + 0x5c], edx
mov eax, 1
pop ebp
ret